From 62aaf1d734d7973b8f8d6d7108c085f525d7b7fe Mon Sep 17 00:00:00 2001 From: Jens Arnold Date: Thu, 20 Apr 2006 21:05:04 +0000 Subject: Use correct macros to check for iriver architecture. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9749 a1c6a512-1295-4272-9138-f99709370657 --- apps/debug_menu.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/apps/debug_menu.c b/apps/debug_menu.c index 55c880c..0851658 100644 --- a/apps/debug_menu.c +++ b/apps/debug_menu.c @@ -947,7 +947,7 @@ bool dbg_ports(void) unsigned int gpio_enable; unsigned int gpio1_enable; int adc_buttons, adc_remote, adc_battery; -#ifdef IRIVER +#if defined(IRIVER_H100_SERIES) || defined(IRIVER_H300_SERIES) int adc_remotedetect; #endif char buf[128]; @@ -993,7 +993,7 @@ bool dbg_ports(void) adc_buttons = adc_read(ADC_BUTTONS); adc_remote = adc_read(ADC_REMOTE); adc_battery = adc_read(ADC_BATTERY); -#ifdef IRIVER +#if defined(IRIVER_H100_SERIES) || defined(IRIVER_H300_SERIES) adc_remotedetect = adc_read(ADC_REMOTEDETECT); #endif @@ -1003,7 +1003,7 @@ bool dbg_ports(void) lcd_puts(0, line++, buf); snprintf(buf, sizeof(buf), "ADC_BATTERY: %02x", adc_battery); lcd_puts(0, line++, buf); -#ifdef IRIVER +#if defined(IRIVER_H100_SERIES) || defined(IRIVER_H300_SERIES) snprintf(buf, sizeof(buf), "ADC_REMOTEDETECT: %02x", adc_remotedetect); lcd_puts(0, line++, buf); #endif @@ -1016,7 +1016,7 @@ bool dbg_ports(void) battery_level()); lcd_puts(0, line++, buf); -#ifdef IRIVER +#if defined(IRIVER_H100_SERIES) || defined(IRIVER_H300_SERIES) snprintf(buf, sizeof(buf), "remotetype:: %d", remote_type()); lcd_puts(0, line++, buf); #endif -- cgit v1.1