mirror of
https://gitea.osmocom.org/sim-card/simtrace2.git
synced 2026-03-16 21:28:33 +03:00
firmware: increase reset delay before usb reattach
The previous value was way too low and led to reenumeration issues when switching from app to bl because the hosts are fairly lenient and feature long delays until they accept disappearing devices as gone for good instead of ignoring a presuambly flaky usb cable or connection. Related: SYS5061 Change-Id: I9b8c8bf794ad5b94fc7ea2a01d1ebf4e36862c36
This commit is contained in:
@@ -690,7 +690,7 @@ void SIMtrace_USB_Initialize(void)
|
||||
unsigned int i;
|
||||
/* Signal USB reset by disabling the pull-up on USB D+ for at least 10 ms */
|
||||
USBD_HAL_Suspend();
|
||||
mdelay(20);
|
||||
mdelay(500);
|
||||
USBD_HAL_Activate();
|
||||
|
||||
// Get std USB driver
|
||||
|
||||
Reference in New Issue
Block a user