summaryrefslogtreecommitdiff
path: root/apps
diff options
context:
space:
mode:
authorMichael Sparmann <theseven@rockbox.org>2010-03-10 03:18:58 +0000
committerMichael Sparmann <theseven@rockbox.org>2010-03-10 03:18:58 +0000
commitf61fb3739af4996a3e5ea9a685484717475a2a66 (patch)
tree2a7cffc118e068ad1b2537288517b9b21444900b /apps
parent6945aa99143d285afa8ae93e7b27c3a97e695f6b (diff)
downloadrockbox-f61fb3739af4996a3e5ea9a685484717475a2a66.tar.gz
rockbox-f61fb3739af4996a3e5ea9a685484717475a2a66.zip
Add the raw battery voltage to the Nano2G battery debug screen
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25102 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps')
-rw-r--r--apps/debug_menu.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/apps/debug_menu.c b/apps/debug_menu.c
index c45aace60b..3e54f996e1 100644
--- a/apps/debug_menu.c
+++ b/apps/debug_menu.c
@@ -1646,6 +1646,8 @@ static bool view_battery(void)
1646 lcd_putsf(0, 5, "CHARGER: %02X", 1646 lcd_putsf(0, 5, "CHARGER: %02X",
1647 ascodec_read(AS3514_CHARGER)); 1647 ascodec_read(AS3514_CHARGER));
1648#elif defined(IPOD_NANO2G) 1648#elif defined(IPOD_NANO2G)
1649 y = pmu_read_battery_voltage();
1650 lcd_putsf(17, 1, "RAW: %d.%03d V", y / 1000, y % 1000);
1649 y = pmu_read_battery_current(); 1651 y = pmu_read_battery_current();
1650 lcd_putsf(0, 2, "Battery current: %d mA", y); 1652 lcd_putsf(0, 2, "Battery current: %d mA", y);
1651 lcd_putsf(0, 3, "PWRCON: %8x", PWRCON); 1653 lcd_putsf(0, 3, "PWRCON: %8x", PWRCON);