Revert continuous battery charging, it doesn't quite work

This commit is contained in:
Jeremy Soller 2019-11-19 11:51:15 -07:00
parent 9f356f88cc
commit 5f49f49140
No known key found for this signature in database
GPG Key ID: E988B49EE78A7FB1

View File

@ -66,21 +66,15 @@ void ac_adapter() {
// Set ACIN LED
gpio_set(&LED_ACIN, !new);
// Battery charger disables by default after timeout, make sure it knows
// we are still alive by setting charge values repeatedly
if (new) {
battery_charger_disable();
} else {
battery_charger_enable();
}
// If there has been a change, print
if (new != last) {
DEBUG("Power adapter ");
if (new) {
DEBUG("unplugged\n");
battery_charger_disable();
} else {
DEBUG("plugged in\n");
battery_charger_enable();
}
battery_debug();
}