summaryrefslogtreecommitdiff
path: root/apps/screens.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/screens.c')
-rw-r--r--apps/screens.c12
1 files changed, 2 insertions, 10 deletions
diff --git a/apps/screens.c b/apps/screens.c
index 92b174b55c..65ab1094d3 100644
--- a/apps/screens.c
+++ b/apps/screens.c
@@ -825,16 +825,8 @@ bool view_runtime(void)
825 gui_synclist_speak_item(&lists); 825 gui_synclist_speak_item(&lists);
826 while(1) 826 while(1)
827 { 827 {
828#if CONFIG_CHARGING 828 global_status.runtime += ((current_tick - lasttime) / HZ);
829 if (charger_inserted()) 829
830 {
831 global_status.runtime = 0;
832 }
833 else
834#endif
835 {
836 global_status.runtime += ((current_tick - lasttime) / HZ);
837 }
838 lasttime = current_tick; 830 lasttime = current_tick;
839 gui_synclist_draw(&lists); 831 gui_synclist_draw(&lists);
840 list_do_action(CONTEXT_STD, HZ, 832 list_do_action(CONTEXT_STD, HZ,