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/10952/head
aglass0fmilk 2019-03-27 11:46:11 -04:00 committed by Arto Kinnunen
parent 79c47bf09f
commit cae6cfe9dd
1 changed files with 3 additions and 0 deletions

View File

@ -403,6 +403,9 @@ void USBPhyHw::endpoint_unstall(usb_ep_t endpoint)
nrf_drv_usbd_ep_t ep = get_nordic_endpoint(endpoint); nrf_drv_usbd_ep_t ep = get_nordic_endpoint(endpoint);
nrf_drv_usbd_ep_stall_clear(ep); 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" * This is a somewhat hacky fix to fully "unload"
* an IN endpoint after a buffer has been * an IN endpoint after a buffer has been