diff options
author | Harald Welte <laforge@osmocom.org> | 2020-03-13 12:56:06 +0100 |
---|---|---|
committer | Harald Welte <laforge@osmocom.org> | 2020-03-13 12:56:49 +0100 |
commit | a625ef0d9b81cc90b31308a0c9c549909515c6c8 (patch) | |
tree | 0b0b65241b0cd54ab70aae1a6f5e66d3767028bb | |
parent | 823f453d83e53d1c7b1180fabf40053a0c60dd31 (diff) |
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
-rw-r--r-- | firmware/atmel_softpack_libraries/usb/device/core/USBD.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/firmware/atmel_softpack_libraries/usb/device/core/USBD.c b/firmware/atmel_softpack_libraries/usb/device/core/USBD.c index bd39a53..747bdd0 100644 --- a/firmware/atmel_softpack_libraries/usb/device/core/USBD.c +++ b/firmware/atmel_softpack_libraries/usb/device/core/USBD.c @@ -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); } } |