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
This commit is contained in:
Michael Sparmann 2010-03-10 03:18:58 +00:00
parent 6945aa9914
commit f61fb3739a

View file

@ -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);