summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFrank Gevaerts <frank@gevaerts.be>2008-02-27 19:23:16 +0000
committerFrank Gevaerts <frank@gevaerts.be>2008-02-27 19:23:16 +0000
commitdcae188c959fccad573d2ba315dc06cc04024cc0 (patch)
tree660c5dc1a825fdf039d56110b50ce58e6c28f82c
parent6e7fac7c34dbf7c50a21f8643eacaabb46d5c17a (diff)
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
-rw-r--r--firmware/usb.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/firmware/usb.c b/firmware/usb.c
index 3ba7480f8f..74c221922b 100644
--- a/firmware/usb.c
+++ b/firmware/usb.c
@@ -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;
}