summaryrefslogtreecommitdiff
path: root/apps/debug_menu.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/debug_menu.c')
-rw-r--r--apps/debug_menu.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/apps/debug_menu.c b/apps/debug_menu.c
index 69c0e2fceb..66b4fdbb8d 100644
--- a/apps/debug_menu.c
+++ b/apps/debug_menu.c
@@ -1333,11 +1333,13 @@ static bool view_runtime(void)
1333#endif 1333#endif
1334 1334
1335 if (state & 1) { 1335 if (state & 1) {
1336#ifdef HAVE_CHARGING
1336 if (charger_inserted()) 1337 if (charger_inserted())
1337 { 1338 {
1338 global_settings.runtime = 0; 1339 global_settings.runtime = 0;
1339 } 1340 }
1340 else 1341 else
1342#endif
1341 { 1343 {
1342 global_settings.runtime += ((current_tick - lasttime) / HZ); 1344 global_settings.runtime += ((current_tick - lasttime) / HZ);
1343 } 1345 }