diff options
Diffstat (limited to 'common/charge_state_v2.c')
-rw-r--r-- | common/charge_state_v2.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/common/charge_state_v2.c b/common/charge_state_v2.c index 6e6cc6c7d7..5a383373af 100644 --- a/common/charge_state_v2.c +++ b/common/charge_state_v2.c @@ -1773,7 +1773,11 @@ void charger_task(void *u) */ if (curr.requested_voltage == 0 && curr.requested_current == 0 && +#ifdef CONFIG_BATTERY_DEAD_UNTIL_VALUE + curr.batt.state_of_charge < CONFIG_BATTERY_DEAD_UNTIL_VALUE) { +#else curr.batt.state_of_charge == 0) { +#endif /* Battery is dead, give precharge current */ curr.requested_voltage = batt_info->voltage_max; |