summaryrefslogtreecommitdiffstats
path: root/apps/settings.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/settings.c')
-rw-r--r--apps/settings.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/apps/settings.c b/apps/settings.c
index 86c1178745..866f87879e 100644
--- a/apps/settings.c
+++ b/apps/settings.c
@@ -763,8 +763,7 @@ void settings_apply(void)
set_poweroff_timeout(global_settings.poweroff);
#ifdef HAVE_CHARGE_CTRL
- charge_restart_level = global_settings.discharge ?
- CHARGE_RESTART_LO : CHARGE_RESTART_HI;
+ enable_deep_discharge(global_settings.discharge);
enable_trickle_charge(global_settings.trickle_charge);
#endif