summaryrefslogtreecommitdiff
path: root/apps/status.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/status.c')
-rw-r--r--apps/status.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/apps/status.c b/apps/status.c
index 31d2cbe2cf..8e4a2c9b08 100644
--- a/apps/status.c
+++ b/apps/status.c
@@ -137,6 +137,7 @@ void status_draw(void)
137 } 137 }
138 if(charger_inserted()) 138 if(charger_inserted())
139 { 139 {
140 global_settings.runtime = 0;
140 if(TIME_AFTER(current_tick, switch_tick)) 141 if(TIME_AFTER(current_tick, switch_tick))
141 { 142 {
142 lcd_icon(ICON_BATTERY, true); 143 lcd_icon(ICON_BATTERY, true);
@@ -202,6 +203,7 @@ void status_draw(void)
202 battery_state = true; 203 battery_state = true;
203 plug_state = true; 204 plug_state = true;
204 if(charger_enabled) { /* animate battery if charging */ 205 if(charger_enabled) { /* animate battery if charging */
206 global_settings.runtime = 0;
205 battlevel = battery_charge_step * 34; /* 34 for a better look */ 207 battlevel = battery_charge_step * 34; /* 34 for a better look */
206 battlevel = battlevel > 100 ? 100 : battlevel; 208 battlevel = battlevel > 100 ? 100 : battlevel;
207 if(TIME_AFTER(current_tick, switch_tick)) { 209 if(TIME_AFTER(current_tick, switch_tick)) {