oryp6: Use a battery current of 0 to determine that battery is fully charged

This commit is contained in:
Jeremy Soller
2020-06-24 08:17:15 -06:00
parent c9a602c5af
commit fc990f8043
2 changed files with 3 additions and 3 deletions

View File

@@ -66,7 +66,7 @@ void board_event(void) {
// Discharging (no AC adapter)
gpio_set(&LED_BAT_CHG_N, true);
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_N, true);