laforge has submitted this change. ( 
https://gerrit.osmocom.org/c/simtrace2/+/17477 )

Change subject: USBD.c: Don't reset EP0 on SetConfiguration(0)
......................................................................

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
---
M firmware/atmel_softpack_libraries/usb/device/core/USBD.c
1 file changed, 1 insertion(+), 1 deletion(-)

Approvals:
  Jenkins Builder: Verified
  laforge: Looks good to me, approved



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 @@
     else {
         deviceState = USBD_STATE_ADDRESS;
         /* Reset all endpoints */
-        USBD_HAL_ResetEPs(0xFFFFFFFF, USBD_STATUS_RESET, 0);
+        USBD_HAL_ResetEPs(0xFFFFFFFE, USBD_STATUS_RESET, 0);
     }
 }


--
To view, visit https://gerrit.osmocom.org/c/simtrace2/+/17477
To unsubscribe, or for help writing mail filters, visit 
https://gerrit.osmocom.org/settings

Gerrit-Project: simtrace2
Gerrit-Branch: master
Gerrit-Change-Id: I070faf4cb7029d3ccfa6c63f8f04aa0f02657536
Gerrit-Change-Number: 17477
Gerrit-PatchSet: 1
Gerrit-Owner: laforge <lafo...@osmocom.org>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: laforge <lafo...@osmocom.org>
Gerrit-MessageType: merged

Reply via email to