usb: wait 15 sec for usb to spin up
Wait 15 seconds for USB to become CONFIGURED. Previous timeout was 5 sec. Windows does usb enumeration quite slow lets give some more room
This commit is contained in:
parent
cb8464b8ec
commit
cdd5161d52
|
@ -405,8 +405,8 @@ static bool mountMmc() {
|
|||
#endif
|
||||
|
||||
#if HAL_USE_USB_MSD
|
||||
// Wait for the USB stack to wake up, or a 5 second timeout, whichever occurs first
|
||||
msg_t usbResult = usbConnectedSemaphore.wait(TIME_MS2I(5000));
|
||||
// Wait for the USB stack to wake up, or a 15 second timeout, whichever occurs first
|
||||
msg_t usbResult = usbConnectedSemaphore.wait(TIME_MS2I(15000));
|
||||
|
||||
bool hasUsb = usbResult == MSG_OK;
|
||||
|
||||
|
|
Loading…
Reference in New Issue