summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorJens Arnold <amiconn@rockbox.org>2005-05-08 12:16:46 +0000
committerJens Arnold <amiconn@rockbox.org>2005-05-08 12:16:46 +0000
commitd89b75bbc04b0ff39f6cae526655a0a3310afb55 (patch)
tree35e5c8333be8242bc7d885c5f909f55b4e045785 /apps
parent46295b5312fd6b261069724c8d5a865f331d4737 (diff)
downloadrockbox-d89b75bbc04b0ff39f6cae526655a0a3310afb55.tar.gz
rockbox-d89b75bbc04b0ff39f6cae526655a0a3310afb55.zip
Removed dead code; some minor optimisations.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6427 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps')
-rw-r--r--apps/debug_menu.c15
1 files 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