summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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)
539 int oldmode; /* saved memory guard mode */ 539 int oldmode; /* saved memory guard mode */
540 540
541#ifdef USB_ENABLE_ONDIOSTYLE 541#ifdef USB_ENABLE_ONDIOSTYLE
542 if(PADR & 0x20) 542 if(PADRL & 0x20)
543#else 543#else
544 if(PADR & 0x400) 544 if(PADRH & 0x04)
545#endif 545#endif
546 usb_polarity = 0; /* Negative */ 546 usb_polarity = 0; /* Negative */
547 else 547 else
548 usb_polarity = 1; /* Positive */ 548 usb_polarity = 1; /* Positive */
549 549
550 if(PADR & 0x800) 550 if(PADRH & 0x08)
551 pr_polarity = 0; /* Negative */ 551 pr_polarity = 0; /* Negative */
552 else 552 else
553 pr_polarity = 1; /* Positive */ 553 pr_polarity = 1; /* Positive */
@@ -636,7 +636,7 @@ bool dbg_hw_info(void)
636 bool has_bootrom; /* flag for boot ROM present */ 636 bool has_bootrom; /* flag for boot ROM present */
637 int oldmode; /* saved memory guard mode */ 637 int oldmode; /* saved memory guard mode */
638 638
639 if(PADR & 0x400) 639 if(PADRH & 0x04)
640 usb_polarity = 0; /* Negative */ 640 usb_polarity = 0; /* Negative */
641 else 641 else
642 usb_polarity = 1; /* Positive */ 642 usb_polarity = 1; /* Positive */
@@ -1119,12 +1119,7 @@ bool dbg_rtc(void)
1119 } 1119 }
1120 return false; 1120 return false;
1121} 1121}
1122#else 1122#endif /* HAVE_RTC */
1123bool dbg_rtc(void)
1124{
1125 return false;
1126}
1127#endif
1128 1123
1129#if CONFIG_HWCODEC != MASNONE 1124#if CONFIG_HWCODEC != MASNONE
1130 1125