summaryrefslogtreecommitdiff
path: root/firmware/usb.c
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/usb.c')
-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;
}