diff options
Diffstat (limited to 'firmware')
-rw-r--r-- | firmware/usb.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/firmware/usb.c b/firmware/usb.c index 8c88ac1d32..2ac56a9c15 100644 --- a/firmware/usb.c +++ b/firmware/usb.c | |||
@@ -197,7 +197,7 @@ static inline void usb_slave_mode(bool on) | |||
197 | #ifdef HAVE_USB_POWER | 197 | #ifdef HAVE_USB_POWER |
198 | static inline bool usb_power_button(void) | 198 | static inline bool usb_power_button(void) |
199 | { | 199 | { |
200 | #if defined(IRIVER_H10) || defined (IRIVER_H10_5GB) | 200 | #if (defined(IRIVER_H10) || defined (IRIVER_H10_5GB)) && !defined(USE_ROCKBOX_USB) |
201 | return (button_status() & ~USBPOWER_BTN_IGNORE) != USBPOWER_BUTTON; | 201 | return (button_status() & ~USBPOWER_BTN_IGNORE) != USBPOWER_BUTTON; |
202 | #else | 202 | #else |
203 | return (button_status() & ~USBPOWER_BTN_IGNORE) == USBPOWER_BUTTON; | 203 | return (button_status() & ~USBPOWER_BTN_IGNORE) == USBPOWER_BUTTON; |