From 1097fd999abf39291c322fafae8020df95d69e2e Mon Sep 17 00:00:00 2001 From: Jeremy Soller Date: Thu, 17 Aug 2023 14:33:43 -0600 Subject: [PATCH] Do not force charging if end threshold is not set --- src/board/system76/common/battery.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/board/system76/common/battery.c b/src/board/system76/common/battery.c index 06d2abf51..0821560ed 100644 --- a/src/board/system76/common/battery.c +++ b/src/board/system76/common/battery.c @@ -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;