From d89b75bbc04b0ff39f6cae526655a0a3310afb55 Mon Sep 17 00:00:00 2001 From: Jens Arnold Date: Sun, 8 May 2005 12:16:46 +0000 Subject: Removed dead code; some minor optimisations. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6427 a1c6a512-1295-4272-9138-f99709370657 --- apps/debug_menu.c | 15 +++++---------- 1 file changed, 5 insertions(+), 10 deletions(-) diff --git a/apps/debug_menu.c b/apps/debug_menu.c index c51f8d42b0..2dcae99889 100644 --- a/apps/debug_menu.c +++ b/apps/debug_menu.c @@ -539,15 +539,15 @@ bool dbg_hw_info(void) int oldmode; /* saved memory guard mode */ #ifdef USB_ENABLE_ONDIOSTYLE - if(PADR & 0x20) + if(PADRL & 0x20) #else - if(PADR & 0x400) + if(PADRH & 0x04) #endif usb_polarity = 0; /* Negative */ else usb_polarity = 1; /* Positive */ - if(PADR & 0x800) + if(PADRH & 0x08) pr_polarity = 0; /* Negative */ else pr_polarity = 1; /* Positive */ @@ -636,7 +636,7 @@ bool dbg_hw_info(void) bool has_bootrom; /* flag for boot ROM present */ int oldmode; /* saved memory guard mode */ - if(PADR & 0x400) + if(PADRH & 0x04) usb_polarity = 0; /* Negative */ else usb_polarity = 1; /* Positive */ @@ -1119,12 +1119,7 @@ bool dbg_rtc(void) } return false; } -#else -bool dbg_rtc(void) -{ - return false; -} -#endif +#endif /* HAVE_RTC */ #if CONFIG_HWCODEC != MASNONE -- cgit v1.2.3