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 69c0e2f..66b4fdb 100644
--- a/apps/debug_menu.c
+++ b/apps/debug_menu.c
@@ -1333,11 +1333,13 @@ static bool view_runtime(void)
#endif
if (state & 1) {
+#ifdef HAVE_CHARGING
if (charger_inserted())
{
global_settings.runtime = 0;
}
else
+#endif
{
global_settings.runtime += ((current_tick - lasttime) / HZ);
}