From dcae188c959fccad573d2ba315dc06cc04024cc0 Mon Sep 17 00:00:00 2001 From: Frank Gevaerts Date: Wed, 27 Feb 2008 19:23:16 +0000 Subject: [PATCH] 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 --- firmware/usb.c | 2 ++ 1 file changed, 2 insertions(+) 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; }