From 6a31936e80ae2743376dcbf9d39cd92461c4deca Mon Sep 17 00:00:00 2001 From: Uros Majstorovic Date: Thu, 25 Nov 2021 01:59:07 +0100 Subject: i2s init/start/running fixed; i2c start returns error if i2s is running --- 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 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(); -- cgit v1.2.3