summaryrefslogtreecommitdiff
path: root/apps
diff options
context:
space:
mode:
authorBertrik Sikken <bertrik@sikken.nl>2011-07-24 17:32:50 +0000
committerBertrik Sikken <bertrik@sikken.nl>2011-07-24 17:32:50 +0000
commit0157c624180a27c8109c93d182ed360920d43909 (patch)
tree769756b734e5bd386d64049134dea53981fa6149 /apps
parent10a1e8a609d5c8ffdb74cdc75fada47acb998bc9 (diff)
ipod nano 1g: enable readout of battery current through ADC channel 4066_ISTAT
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30204 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps')
-rw-r--r--apps/debug_menu.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/debug_menu.c b/apps/debug_menu.c
index b557f46dc3..9e4621b749 100644
--- a/apps/debug_menu.c
+++ b/apps/debug_menu.c
@@ -889,10 +889,10 @@ static bool view_battery(void)
if(probed_ramsize == 64)
x = (adc_read(ADC_4066_ISTAT) * 2400) / (1024 * 2);
else
+#endif
x = (adc_read(ADC_4066_ISTAT) * 2400) / (1024 * 3);
lcd_putsf(0, 8, "Ibat: %d mA", x);
lcd_putsf(0, 9, "Vbat * Ibat: %d mW", x * y / 1000);
-#endif
#elif defined TOSHIBA_GIGABEAT_S
int line = 3;
unsigned int st;