Merge pull request #5457 from jepler/espressif-cam-missed-frame

eespressif: ParallelImageCapture: keep peripheral running
This commit is contained in:
Limor "Ladyada" Fried 2021-10-11 20:25:18 -04:00 committed by GitHub
commit 1099716986
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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();
}