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:
Andrey Gusakov 2023-05-08 23:25:37 +03:00 committed by rusefillc
parent cb8464b8ec
commit cdd5161d52
1 changed files with 2 additions and 2 deletions

View File

@ -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;