eespressif: ParallelImageCapture: keep peripheral running

Otherwise, a lot of frames were being dropped, leading to a low framerate
in the "directio" demo for OV5640 cameras
This commit is contained in:
Jeff Epler 2021-10-11 15:37:57 -05:00
parent 42523a1832
commit 6abb7dd461

View File

@ -110,10 +110,10 @@ void common_hal_imagecapture_parallelimagecapture_capture(imagecapture_paralleli
self->config.frame1_buffer = buffer; self->config.frame1_buffer = buffer;
cam_init(&self->config); cam_init(&self->config);
cam_start();
} else { } else {
cam_give(buffer); cam_give(buffer);
} }
cam_start();
while (!cam_ready()) { while (!cam_ready()) {
RUN_BACKGROUND_TASKS; RUN_BACKGROUND_TASKS;
@ -126,6 +126,4 @@ void common_hal_imagecapture_parallelimagecapture_capture(imagecapture_paralleli
uint8_t *unused; uint8_t *unused;
cam_take(&unused); // this just "returns" buffer cam_take(&unused); // this just "returns" buffer
cam_stop();
} }