diff options
| author | Michael Sparmann <theseven@rockbox.org> | 2010-03-10 03:18:58 +0000 |
|---|---|---|
| committer | Michael Sparmann <theseven@rockbox.org> | 2010-03-10 03:18:58 +0000 |
| commit | f61fb3739af4996a3e5ea9a685484717475a2a66 (patch) | |
| tree | 2a7cffc118e068ad1b2537288517b9b21444900b /apps/debug_menu.c | |
| parent | 6945aa99143d285afa8ae93e7b27c3a97e695f6b (diff) | |
| download | rockbox-f61fb3739af4996a3e5ea9a685484717475a2a66.zip rockbox-f61fb3739af4996a3e5ea9a685484717475a2a66.tar.gz rockbox-f61fb3739af4996a3e5ea9a685484717475a2a66.tar.bz2 rockbox-f61fb3739af4996a3e5ea9a685484717475a2a66.tar.xz | |
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/debug_menu.c')
| -rw-r--r-- | apps/debug_menu.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/apps/debug_menu.c b/apps/debug_menu.c index c45aace..3e54f99 100644 --- a/apps/debug_menu.c +++ b/apps/debug_menu.c @@ -1646,6 +1646,8 @@ static bool view_battery(void) lcd_putsf(0, 5, "CHARGER: %02X", ascodec_read(AS3514_CHARGER)); #elif defined(IPOD_NANO2G) + y = pmu_read_battery_voltage(); + lcd_putsf(17, 1, "RAW: %d.%03d V", y / 1000, y % 1000); y = pmu_read_battery_current(); lcd_putsf(0, 2, "Battery current: %d mA", y); lcd_putsf(0, 3, "PWRCON: %8x", PWRCON); |