summaryrefslogtreecommitdiff
path: root/firmware
diff options
context:
space:
mode:
Diffstat (limited to 'firmware')
-rw-r--r--firmware/usb.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/firmware/usb.c b/firmware/usb.c
index 58656b585f..44e359f8e9 100644
--- a/firmware/usb.c
+++ b/firmware/usb.c
@@ -253,6 +253,7 @@ static void usb_thread(void)
253#ifdef USB_REALLY_BRAVE 253#ifdef USB_REALLY_BRAVE
254 usb_slave_mode(true); 254 usb_slave_mode(true);
255 usb_state = USB_INSERTED; 255 usb_state = USB_INSERTED;
256 cpu_idle_mode(true);
256#else 257#else
257 system_reboot(); 258 system_reboot();
258#endif 259#endif
@@ -283,6 +284,7 @@ static void usb_thread(void)
283 some threads might not have acknowledged the 284 some threads might not have acknowledged the
284 insertion */ 285 insertion */
285 usb_slave_mode(false); 286 usb_slave_mode(false);
287 cpu_idle_mode(false);
286 } 288 }
287 289
288 usb_state = USB_EXTRACTED; 290 usb_state = USB_EXTRACTED;