Ensure smart charger uses new input current limits when detected

This commit is contained in:
Jeremy Soller
2023-03-29 13:53:32 -06:00
parent 658f24a8a8
commit cd0321bfbb

View File

@ -158,7 +158,9 @@ void usbpd_event(void) {
if (next_input_current != battery_charger_input_current) { if (next_input_current != battery_charger_input_current) {
battery_charger_input_current = next_input_current; battery_charger_input_current = next_input_current;
DEBUG("CHARGER LIMIT %d mA\n", battery_charger_input_current); DEBUG("CHARGER LIMIT %d mA\n", battery_charger_input_current);
//TODO: update smart charger
// Disable smart charger so it is reconfigured with the new limit
battery_charger_disable();
} }
} }