Skip to content

Commit

Permalink
Do not force charging if end threshold is not set
Browse files Browse the repository at this point in the history
  • Loading branch information
jackpot51 committed Aug 17, 2023
1 parent 34dd9cc commit 1097fd9
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/board/system76/common/battery.c
Original file line number Diff line number Diff line change
Expand Up @@ -63,9 +63,6 @@ int16_t battery_charger_configure(void) {
// - AC is not plugged in, or
// - Battery is fully charged
should_charge = false;
} else if (battery_get_end_threshold() == BATTERY_END_DEFAULT) {
// Stop threshold not configured: Always charge on AC.
should_charge = true;
} else if (battery_info.charge > battery_get_end_threshold()) {
// Stop threshold configured: Stop charging at threshold.
should_charge = false;
Expand Down

0 comments on commit 1097fd9

Please sign in to comment.