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:
parent
c96452ac92
commit
c9e08ba01a
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue