summaryrefslogtreecommitdiff
path: root/firmware/usb.c
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/usb.c')
-rw-r--r--firmware/usb.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/firmware/usb.c b/firmware/usb.c
index c33b62f244..99b2f64612 100644
--- a/firmware/usb.c
+++ b/firmware/usb.c
@@ -253,6 +253,7 @@ static void usb_thread(void)
#ifndef USE_ROCKBOX_USB
/* until we have native mass-storage mode, we want to reboot on
usb host connect */
+ usb_enable(true);
try_reboot();
#endif /* USE_ROCKBOX_USB */
#ifdef HAVE_PRIORITY_SCHEDULING
@@ -460,7 +461,9 @@ void usb_init(void)
#endif
usb_init_device();
+#ifndef BOOTLOADER
usb_enable(false);
+#endif
/* We assume that the USB cable is extracted */
last_usb_status = USB_EXTRACTED;