summaryrefslogtreecommitdiff
path: root/fw/fe310/eos/i2c
diff options
context:
space:
mode:
authorUros Majstorovic <majstor@majstor.org>2021-11-18 03:18:18 +0100
committerUros Majstorovic <majstor@majstor.org>2021-11-18 03:18:18 +0100
commitc44897fda572cf8837b4535a6d1aaad4605c14af (patch)
treec3c98c36589253da3a1a6308ec2804b5eb4a4d75 /fw/fe310/eos/i2c
parentb0e84c72d7a533f62ca750a73445da7fcebe8d18 (diff)
eve sleep improved
Diffstat (limited to 'fw/fe310/eos/i2c')
-rw-r--r--fw/fe310/eos/i2c/bq25895.c2
1 files changed, 1 insertions, 1 deletions
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");
}