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:
Frank Gevaerts 2008-02-27 19:23:16 +00:00
parent 6e7fac7c34
commit dcae188c95

View file

@ -315,7 +315,9 @@ static void usb_thread(void)
break;
#endif
case USB_REQUEST_REBOOT:
#ifdef HAVE_POWER
if((button_status() & ~USBPOWER_BTN_IGNORE) != USBPOWER_BUTTON)
#endif
try_reboot();
break;
}