@@ -255,7 +255,7 @@ static void cam_task(void *arg)
255
255
if (cam_event == CAM_IN_SUC_EOF_EVENT ) {
256
256
if (!cam_obj -> psram_mode ){
257
257
if (cam_obj -> fb_size < (frame_buffer_event -> len + pixels_per_dma )) {
258
- ESP_LOGW ( TAG , " FB-OVF" );
258
+ ESP_CAMERA_ETS_PRINTF ( DRAM_STR ( "cam_hal: FB-OVF\r\n" ) );
259
259
ll_cam_stop (cam_obj );
260
260
continue ;
261
261
}
@@ -333,7 +333,7 @@ static void cam_task(void *arg)
333
333
if (cam_obj -> jpeg_mode ) {
334
334
if (!cam_obj -> psram_mode ) {
335
335
if (cam_obj -> fb_size < (frame_buffer_event -> len + pixels_per_dma )) {
336
- ESP_LOGW ( TAG , " FB-OVF" );
336
+ ESP_CAMERA_ETS_PRINTF ( DRAM_STR ( "cam_hal: FB-OVF\r\n" ) );
337
337
cnt -- ;
338
338
} else {
339
339
frame_buffer_event -> len += ll_cam_memcpy (cam_obj ,
@@ -356,7 +356,7 @@ static void cam_task(void *arg)
356
356
} else if (!cam_obj -> jpeg_mode ) {
357
357
if (frame_buffer_event -> len != cam_obj -> fb_size ) {
358
358
cam_obj -> frames [frame_pos ].en = 1 ;
359
- ESP_LOGE ( TAG , " FB-SIZE: %u != %u" , frame_buffer_event -> len , (unsigned ) cam_obj -> fb_size );
359
+ ESP_CAMERA_ETS_PRINTF ( DRAM_STR ( "cam_hal: FB-SIZE: %u != %u\r\n" ) , frame_buffer_event -> len , (unsigned ) cam_obj -> fb_size );
360
360
}
361
361
}
362
362
//send frame
@@ -367,14 +367,14 @@ static void cam_task(void *arg)
367
367
//push the new frame to the end of the queue
368
368
if (xQueueSend (cam_obj -> frame_buffer_queue , (void * )& frame_buffer_event , 0 ) != pdTRUE ) {
369
369
cam_obj -> frames [frame_pos ].en = 1 ;
370
- ESP_LOGE ( TAG , " FBQ-SND" );
370
+ ESP_CAMERA_ETS_PRINTF ( DRAM_STR ( "cam_hal: FBQ-SND\r\n" ) );
371
371
}
372
372
//free the popped buffer
373
373
cam_give (fb2 );
374
374
} else {
375
375
//queue is full and we could not pop a frame from it
376
376
cam_obj -> frames [frame_pos ].en = 1 ;
377
- ESP_LOGE ( TAG , " FBQ-RCV" );
377
+ ESP_CAMERA_ETS_PRINTF ( DRAM_STR ( "cam_hal: FBQ-RCV\r\n" ) );
378
378
}
379
379
}
380
380
}
0 commit comments