From c44897fda572cf8837b4535a6d1aaad4605c14af Mon Sep 17 00:00:00 2001 From: Uros Majstorovic Date: Thu, 18 Nov 2021 03:18:18 +0100 Subject: eve sleep improved --- fw/fe310/eos/i2c/bq25895.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'fw/fe310/eos/i2c') diff --git a/fw/fe310/eos/i2c/bq25895.c b/fw/fe310/eos/i2c/bq25895.c index 2b45f88..85b162b 100644 --- a/fw/fe310/eos/i2c/bq25895.c +++ b/fw/fe310/eos/i2c/bq25895.c @@ -22,7 +22,7 @@ void eos_bq25895_init(uint8_t wakeup_cause) { if (ret) printf("I2C ERROR 0x07\n"); ret = eos_i2c_write8(BQ25895_ADDR, 0x00, 0x28); // 2.1A input current if (ret) printf("I2C ERROR 0x00\n"); - ret = eos_i2c_write8(BQ25895_ADDR, 0x02, 0x20); // disaable MaxCharge, ICO and + ret = eos_i2c_write8(BQ25895_ADDR, 0x02, 0x30); // enable ICO, disaable MaxCharge and D+/D- if (ret) printf("I2C ERROR 0x02\n"); } -- cgit v1.2.3