mirror of
https://gitea.osmocom.org/sim-card/simtrace2.git
synced 2026-03-16 21:28:33 +03:00
USBD.c: Don't reset EP0 on SetConfiguration(0)
If we do this, the resulting USB code will fail on any of the USB-IF Chapter 9 tests. EP0 should not be reset. Change-Id: I070faf4cb7029d3ccfa6c63f8f04aa0f02657536
This commit is contained in:
@@ -300,7 +300,7 @@ void USBD_SetConfiguration(uint8_t cfgnum)
|
||||
else {
|
||||
deviceState = USBD_STATE_ADDRESS;
|
||||
/* Reset all endpoints */
|
||||
USBD_HAL_ResetEPs(0xFFFFFFFF, USBD_STATUS_RESET, 0);
|
||||
USBD_HAL_ResetEPs(0xFFFFFFFE, USBD_STATUS_RESET, 0);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user