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/test.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'fw/fe310/test/test.c') diff --git a/fw/fe310/test/test.c b/fw/fe310/test/test.c index 87c1e2b..9cf7605 100644 --- a/fw/fe310/test/test.c +++ b/fw/fe310/test/test.c @@ -40,11 +40,7 @@ int app_test_uievt(EVEForm *form, uint16_t evt, void *param) { case EVE_UIEVT_PAGE_TOUCH: printf("PAGE TOUCH\n"); printf("BQ25895:\n"); - rv = eos_i2c_start(); - if (rv) { - printf("I2C BUSY\n"); - return 0; - } + eos_i2c_start(); for (i=0; i<0x15; i++) { rv = reg_read(i, &data); if (!rv) printf("REG%02x: %02x\n", i, data); -- cgit v1.2.3