Fix lemp9 current draw

This commit is contained in:
Jeremy Soller 2020-04-05 11:54:34 -06:00
parent e8f8daae1b
commit 113a4b23ab
No known key found for this signature in database
GPG Key ID: E988B49EE78A7FB1

View File

@ -55,7 +55,8 @@ int battery_charger_enable(void) {
if (res < 0) return res;
// Set input current to ~3.2 A
res = smbus_write(0x09, 0x3F, 0x0C80);
// TODO: figure out why input current must be divided by 2
res = smbus_write(0x09, 0x3F, 0x0C80 / 2);
if (res < 0) return res;
// Set charge option 0 with watchdog disabled