Skip to content

Commit 6abb7dd

Browse files
committed
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
1 parent 42523a1 commit 6abb7dd

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

ports/espressif/common-hal/imagecapture/ParallelImageCapture.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -110,10 +110,10 @@ void common_hal_imagecapture_parallelimagecapture_capture(imagecapture_paralleli
110110
self->config.frame1_buffer = buffer;
111111

112112
cam_init(&self->config);
113+
cam_start();
113114
} else {
114115
cam_give(buffer);
115116
}
116-
cam_start();
117117

118118
while (!cam_ready()) {
119119
RUN_BACKGROUND_TASKS;
@@ -126,6 +126,4 @@ void common_hal_imagecapture_parallelimagecapture_capture(imagecapture_paralleli
126126

127127
uint8_t *unused;
128128
cam_take(&unused); // this just "returns" buffer
129-
130-
cam_stop();
131129
}

0 commit comments

Comments
 (0)