forked from len0rd/rockbox
check for HAVE_POWER outside all uses of USBPOWER_BUTTON
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16436 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
6e7fac7c34
commit
dcae188c95
1 changed files with 2 additions and 0 deletions
|
|
@ -315,7 +315,9 @@ static void usb_thread(void)
|
||||||
break;
|
break;
|
||||||
#endif
|
#endif
|
||||||
case USB_REQUEST_REBOOT:
|
case USB_REQUEST_REBOOT:
|
||||||
|
#ifdef HAVE_POWER
|
||||||
if((button_status() & ~USBPOWER_BTN_IGNORE) != USBPOWER_BUTTON)
|
if((button_status() & ~USBPOWER_BTN_IGNORE) != USBPOWER_BUTTON)
|
||||||
|
#endif
|
||||||
try_reboot();
|
try_reboot();
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue