Alternative detection of battery charged

This commit is contained in:
Jeremy Soller
2020-06-30 08:05:49 -06:00
parent 849ce36c6f
commit ab8546a7b7
2 changed files with 2 additions and 2 deletions

View File

@ -531,7 +531,7 @@ void power_event(void) {
// Discharging (no AC adapter)
gpio_set(&LED_BAT_CHG, false);
gpio_set(&LED_BAT_FULL, false);
} else if (battery_status & 0x0020) {
} else if (battery_current == 0) {
// Fully charged
// TODO: turn off charger
gpio_set(&LED_BAT_CHG, false);