summaryrefslogtreecommitdiff
path: root/firmware/usb.c
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/usb.c')
-rw-r--r--firmware/usb.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/firmware/usb.c b/firmware/usb.c
index 6b226bd43b..2adf28a52b 100644
--- a/firmware/usb.c
+++ b/firmware/usb.c
@@ -72,11 +72,6 @@ static bool usb_monitor_enabled;
72 72
73static void usb_enable(bool on) 73static void usb_enable(bool on)
74{ 74{
75#ifdef HAVE_LCD_BITMAP
76 if(read_hw_mask() & USB_ACTIVE_HIGH)
77 on = !on;
78#endif
79
80#ifdef USB_ENABLE_ONDIOSTYLE 75#ifdef USB_ENABLE_ONDIOSTYLE
81 if(on) 76 if(on)
82 { 77 {
@@ -88,6 +83,10 @@ static void usb_enable(bool on)
88 } 83 }
89 or_b(0x20, &PAIORL); /* output for USB enable */ 84 or_b(0x20, &PAIORL); /* output for USB enable */
90#else /* standard HD Jukebox */ 85#else /* standard HD Jukebox */
86#ifdef HAVE_LCD_BITMAP
87 if(read_hw_mask() & USB_ACTIVE_HIGH)
88 on = !on;
89#endif
91 if(on) 90 if(on)
92 { 91 {
93 and_b(~0x04, &PADRH); /* enable USB */ 92 and_b(~0x04, &PADRH); /* enable USB */