From 7d03a941be6e9226e71cb5f5b4f7949e06bbfb02 Mon Sep 17 00:00:00 2001 From: Uros Majstorovic Date: Thu, 9 Dec 2021 23:50:58 +0100 Subject: improved init process --- fw/fe310/test/cam.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'fw/fe310/test/cam.c') diff --git a/fw/fe310/test/cam.c b/fw/fe310/test/cam.c index 2cef686..9338ae9 100644 --- a/fw/fe310/test/cam.c +++ b/fw/fe310/test/cam.c @@ -141,8 +141,8 @@ void app_cam(EVEWindow *window, EVEViewStack *stack) { eos_time_sleep(100); eos_i2c_speed(100000); - rv = eos_i2c_start(); - if (!rv) rv = eos_ov2640_init(); + eos_i2c_start(); + 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(); -- cgit v1.2.3