diff options
-rw-r--r-- | apps/debug_menu.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/apps/debug_menu.c b/apps/debug_menu.c index f805dae339..1288d9acac 100644 --- a/apps/debug_menu.c +++ b/apps/debug_menu.c | |||
@@ -1534,8 +1534,12 @@ static bool view_battery(void) | |||
1534 | break; | 1534 | break; |
1535 | 1535 | ||
1536 | case 1: /* status: */ | 1536 | case 1: /* status: */ |
1537 | #if CONFIG_CHARGING >= CHARGING_MONITOR | ||
1538 | lcd_putsf(0, 0, "Pwr status: %s", | ||
1539 | charging_state() ? "charging" : "discharging"); | ||
1540 | #else | ||
1537 | lcd_puts(0, 0, "Power status:"); | 1541 | lcd_puts(0, 0, "Power status:"); |
1538 | 1542 | #endif | |
1539 | battery_read_info(&y, NULL); | 1543 | battery_read_info(&y, NULL); |
1540 | lcd_putsf(0, 1, "Battery: %d.%03d V", y / 1000, y % 1000); | 1544 | lcd_putsf(0, 1, "Battery: %d.%03d V", y / 1000, y % 1000); |
1541 | #ifdef ADC_EXT_POWER | 1545 | #ifdef ADC_EXT_POWER |