diff options
author | Frank Gevaerts <frank@gevaerts.be> | 2009-02-25 22:36:35 +0000 |
---|---|---|
committer | Frank Gevaerts <frank@gevaerts.be> | 2009-02-25 22:36:35 +0000 |
commit | c9e08ba01a05289cd43809e16b137c410adbf7f8 (patch) | |
tree | 70f1e880dc946a1a654a2dacc0e9ebe709bc2867 /firmware/usb.c | |
parent | c96452ac9236bc4288c11ebdcd7f4583a9ac189a (diff) | |
download | rockbox-c9e08ba01a05289cd43809e16b137c410adbf7f8.tar.gz rockbox-c9e08ba01a05289cd43809e16b137c410adbf7f8.zip |
Don't use inverted button behaviour on H10 when using Rockbox USB (as opposed to the OF diskmode)
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@20104 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/usb.c')
-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; |