mirror of https://github.com/ARMmbed/mbed-os.git
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."
parent
57de05c54b
commit
457691f392
|
@ -402,6 +402,9 @@ void USBPhyHw::endpoint_unstall(usb_ep_t endpoint)
|
|||
{
|
||||
nrf_drv_usbd_ep_t ep = get_nordic_endpoint(endpoint);
|
||||
nrf_drv_usbd_ep_stall_clear(ep);
|
||||
|
||||
// Clear data toggle
|
||||
nrf_drv_usbd_ep_dtoggle_clear(ep);
|
||||
|
||||
/*
|
||||
* This is a somewhat hacky fix to fully "unload"
|
||||
|
|
Loading…
Reference in New Issue