1
0
Fork 0
forked from len0rd/rockbox

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
This commit is contained in:
Frank Gevaerts 2009-02-25 22:36:35 +00:00
parent c96452ac92
commit c9e08ba01a

View file

@ -197,7 +197,7 @@ static inline void usb_slave_mode(bool on)
#ifdef HAVE_USB_POWER #ifdef HAVE_USB_POWER
static inline bool usb_power_button(void) static inline bool usb_power_button(void)
{ {
#if defined(IRIVER_H10) || defined (IRIVER_H10_5GB) #if (defined(IRIVER_H10) || defined (IRIVER_H10_5GB)) && !defined(USE_ROCKBOX_USB)
return (button_status() & ~USBPOWER_BTN_IGNORE) != USBPOWER_BUTTON; return (button_status() & ~USBPOWER_BTN_IGNORE) != USBPOWER_BUTTON;
#else #else
return (button_status() & ~USBPOWER_BTN_IGNORE) == USBPOWER_BUTTON; return (button_status() & ~USBPOWER_BTN_IGNORE) == USBPOWER_BUTTON;