diff options
author | Marcin Bukat <marcin.bukat@gmail.com> | 2010-05-19 13:24:18 +0000 |
---|---|---|
committer | Marcin Bukat <marcin.bukat@gmail.com> | 2010-05-19 13:24:18 +0000 |
commit | dd8e8a7d05443ed730760f196a9deebd559d661d (patch) | |
tree | c4d15c70b14bb581085d1ac8ddd1e607b6dc2277 | |
parent | b3a8170afef84b545b7df17ff7d87d3f8528bae7 (diff) | |
download | rockbox-dd8e8a7d05443ed730760f196a9deebd559d661d.tar.gz rockbox-dd8e8a7d05443ed730760f196a9deebd559d661d.zip |
Add charging/discharging indication to battery debug menu if CONFIG_CHARGING >= CHARGING_MONITOR
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26162 a1c6a512-1295-4272-9138-f99709370657
-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 |