summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorLinus Nielsen Feltzing <linus@haxx.se>2008-05-29 06:46:09 +0000
committerLinus Nielsen Feltzing <linus@haxx.se>2008-05-29 06:46:09 +0000
commit0cda59e939c05caded7bcfc000924d41761b6be7 (patch)
treea2b19472bbfa55483d75f1c7f9cd26f4c813b8b6 /apps
parent07bfba21aeba9bf3431bed6ca5daa377b0530a9b (diff)
downloadrockbox-0cda59e939c05caded7bcfc000924d41761b6be7.tar.gz
rockbox-0cda59e939c05caded7bcfc000924d41761b6be7.tar.bz2
rockbox-0cda59e939c05caded7bcfc000924d41761b6be7.zip
Oops, not all PP targets have ADC_ACCESSORY.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17649 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 72c8225476..479ca34995 100644
--- a/apps/debug_menu.c
+++ b/apps/debug_menu.c
@@ -1194,8 +1194,10 @@ bool dbg_ports(void)
lcd_puts(0, line++, buf);
snprintf(buf, sizeof(buf), "DEV_INIT2: %08lx", DEV_INIT2);
lcd_puts(0, line++, buf);
+#ifdef ADC_ACCESSORY
snprintf(buf, sizeof(buf), "ACCESSORY: %d", adc_read(ADC_ACCESSORY));
lcd_puts(0, line++, buf);
+#endif
#if defined(IRIVER_H10) || defined(IRIVER_H10_5GB)
line++;