diff options
Diffstat (limited to 'firmware')
-rw-r--r-- | firmware/usb.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/firmware/usb.c b/firmware/usb.c index aa3ab0ae69..2971ab7041 100644 --- a/firmware/usb.c +++ b/firmware/usb.c | |||
@@ -199,6 +199,9 @@ static void usb_thread(void) | |||
199 | #endif | 199 | #endif |
200 | { | 200 | { |
201 | #ifdef HAVE_USBSTACK | 201 | #ifdef HAVE_USBSTACK |
202 | /* Set the state to USB_POWERED for now. if a real | ||
203 | connection is detected it will switch to USB_INSERTED */ | ||
204 | usb_state = USB_POWERED; | ||
202 | usb_core_enable_driver(USB_DRIVER_MASS_STORAGE,true); | 205 | usb_core_enable_driver(USB_DRIVER_MASS_STORAGE,true); |
203 | usb_core_enable_driver(USB_DRIVER_CHARGING_ONLY,false); | 206 | usb_core_enable_driver(USB_DRIVER_CHARGING_ONLY,false); |
204 | usb_enable(true); | 207 | usb_enable(true); |