Skip to content

Commit 7a8de01

Browse files
caiocferJamie C. Driver
authored andcommitted
Fix camera OV3660 error
This fixes the issues that occurred when attempting to read a QR code using the OV3660 camera. Signed-off-by: Caio Cesar Ferreira <[email protected]>
1 parent 5f4bc09 commit 7a8de01

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

main/camera.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -306,14 +306,17 @@ static void jade_camera_init(void)
306306
JADE_LOGE("Failed to set camera hmirror/vflip, returned: %d/%d", hret, vret);
307307
}
308308
}
309+
310+
// OV3660 needs a vertical flip for the ESP32 Wrover Cam
309311
// OV5640 needs vertical flip for T-Display S3 PRO
310-
else if (camera_info->model == CAMERA_OV5640) {
312+
else if (camera_info->model == CAMERA_OV3660 || camera_info->model == CAMERA_OV5640) {
311313
JADE_ASSERT(camera_sensor->set_vflip);
312314
const int vret = camera_sensor->set_vflip(camera_sensor, 1);
313315
if (vret) {
314316
JADE_LOGE("Failed to set camera vflip, returned: %d", vret);
315317
}
316318
}
319+
317320
#if defined(CONFIG_DISPLAY_TOUCHSCREEN)
318321
touchscreen_deinit();
319322
touchscreen_init();

0 commit comments

Comments
 (0)