diff options
author | Aidan MacDonald <amachronic@protonmail.com> | 2021-11-30 21:01:50 +0000 |
---|---|---|
committer | Aidan MacDonald <amachronic@protonmail.com> | 2021-12-23 11:39:58 +0000 |
commit | 9ae983068a7e9d73c0254639cca2e7d6390f7da5 (patch) | |
tree | d4d07eebcde0168fa84c1bf2c6742ed7b3d92f9b /apps/debug_menu.c | |
parent | ad05c872fe1a0d925f478106bfb56e731f3ce53c (diff) | |
download | rockbox-9ae983068a7e9d73c0254639cca2e7d6390f7da5.tar.gz rockbox-9ae983068a7e9d73c0254639cca2e7d6390f7da5.zip |
Display battery current in debug menu
Change-Id: I07a458c34da931125d986d20df27df38e47c8854
Diffstat (limited to 'apps/debug_menu.c')
-rw-r--r-- | apps/debug_menu.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/apps/debug_menu.c b/apps/debug_menu.c index 4c0486595f..b11458fef8 100644 --- a/apps/debug_menu.c +++ b/apps/debug_menu.c | |||
@@ -1147,6 +1147,10 @@ static bool view_battery(void) | |||
1147 | lcd_putsf(0, 7, "Est. remain: %d m", time_left); | 1147 | lcd_putsf(0, 7, "Est. remain: %d m", time_left); |
1148 | else | 1148 | else |
1149 | lcd_puts(0, 7, "Estimation n/a"); | 1149 | lcd_puts(0, 7, "Estimation n/a"); |
1150 | |||
1151 | #if (CONFIG_BATTERY_MEASURE & CURRENT_MEASURE) | ||
1152 | lcd_putsf(0, 8, "battery current: %d mA", battery_current()); | ||
1153 | #endif | ||
1150 | break; | 1154 | break; |
1151 | } | 1155 | } |
1152 | 1156 | ||