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.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/apps/debug_menu.c b/apps/debug_menu.c
index 8cf41037f1..9ab505061e 100644
--- a/apps/debug_menu.c
+++ b/apps/debug_menu.c
@@ -31,6 +31,7 @@
31#include "adc.h" 31#include "adc.h"
32#include "mas.h" 32#include "mas.h"
33#include "power.h" 33#include "power.h"
34#include "usb.h"
34#include "rtc.h" 35#include "rtc.h"
35#include "debug.h" 36#include "debug.h"
36#include "thread.h" 37#include "thread.h"
@@ -1470,7 +1471,11 @@ static bool view_runtime(void)
1470 1471
1471 if (state & 1) { 1472 if (state & 1) {
1472#ifdef HAVE_CHARGING 1473#ifdef HAVE_CHARGING
1473 if (charger_inserted()) 1474 if (charger_inserted()
1475#ifdef HAVE_USB_POWER
1476 || usb_powered()
1477#endif
1478 )
1474 { 1479 {
1475 global_settings.runtime = 0; 1480 global_settings.runtime = 0;
1476 } 1481 }