From c9e08ba01a05289cd43809e16b137c410adbf7f8 Mon Sep 17 00:00:00 2001 From: Frank Gevaerts Date: Wed, 25 Feb 2009 22:36:35 +0000 Subject: 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 --- firmware/usb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) #ifdef HAVE_USB_POWER 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; #else return (button_status() & ~USBPOWER_BTN_IGNORE) == USBPOWER_BUTTON; -- cgit v1.2.3