Skip to content

Commit 457691f

Browse files
committed
Fixed failure on endpoint test data toggle reset (under Windows): "Data toggle not reset when calling ClearFeature(ENDPOINT_HALT) on an endpoint that has not been halted."
1 parent 57de05c commit 457691f

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

usb/device/targets/TARGET_NORDIC/TARGET_MCU_NRF52840/USBPhy_Nordic.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -402,6 +402,9 @@ void USBPhyHw::endpoint_unstall(usb_ep_t endpoint)
402402
{
403403
nrf_drv_usbd_ep_t ep = get_nordic_endpoint(endpoint);
404404
nrf_drv_usbd_ep_stall_clear(ep);
405+
406+
// Clear data toggle
407+
nrf_drv_usbd_ep_dtoggle_clear(ep);
405408

406409
/*
407410
* This is a somewhat hacky fix to fully "unload"

0 commit comments

Comments
 (0)