summaryrefslogtreecommitdiff
path: root/fw/fe310/test/cam.c
diff options
context:
space:
mode:
Diffstat (limited to 'fw/fe310/test/cam.c')
-rw-r--r--fw/fe310/test/cam.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/fw/fe310/test/cam.c b/fw/fe310/test/cam.c
index caab2cc..3162b40 100644
--- a/fw/fe310/test/cam.c
+++ b/fw/fe310/test/cam.c
@@ -139,9 +139,9 @@ void app_cam(EVEWindow *window, EVEViewStack *stack) {
eve_gpio_set(EVE_GPIO_CAM, 1);
eos_time_sleep(100);
- eos_i2c_start(100000);
- rv = eos_ov2640_init();
+ rv = eos_i2c_start(100000);
+ if (!rv) rv = eos_ov2640_init();
if (!rv) rv = eos_ov2640_set_pixfmt(PIXFORMAT_JPEG);
if (!rv) rv = eos_ov2640_set_framesize(FRAMESIZE_VGA);
eos_i2c_stop();