From 6abb7dd46133021de3a973c9d9e270d3cb31eba4 Mon Sep 17 00:00:00 2001 From: Jeff Epler Date: Mon, 11 Oct 2021 15:37:57 -0500 Subject: [PATCH] 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 --- .../espressif/common-hal/imagecapture/ParallelImageCapture.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/ports/espressif/common-hal/imagecapture/ParallelImageCapture.c b/ports/espressif/common-hal/imagecapture/ParallelImageCapture.c index 67932804f7..6d347080bd 100644 --- a/ports/espressif/common-hal/imagecapture/ParallelImageCapture.c +++ b/ports/espressif/common-hal/imagecapture/ParallelImageCapture.c @@ -110,10 +110,10 @@ void common_hal_imagecapture_parallelimagecapture_capture(imagecapture_paralleli self->config.frame1_buffer = buffer; cam_init(&self->config); + cam_start(); } else { cam_give(buffer); } - cam_start(); while (!cam_ready()) { RUN_BACKGROUND_TASKS; @@ -126,6 +126,4 @@ void common_hal_imagecapture_parallelimagecapture_capture(imagecapture_paralleli uint8_t *unused; cam_take(&unused); // this just "returns" buffer - - cam_stop(); }