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."

pull/10689/head
aglass0fmilk 2019-03-27 11:46:11 -04:00
parent 57de05c54b
commit 457691f392
1 changed files with 3 additions and 0 deletions

View File

@ -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"