mirror of https://github.com/ARMmbed/mbed-os.git
Astyle fixed USBPhy_Nordic.cpp
parent
5386b87693
commit
cd3d939b5d
|
@ -403,8 +403,9 @@ void USBPhyHw::endpoint_unstall(usb_ep_t endpoint)
|
|||
nrf_drv_usbd_ep_t ep = get_nordic_endpoint(endpoint);
|
||||
|
||||
// Unstall may be called on an endpoint that isn't stalled
|
||||
if(nrf_drv_usbd_ep_stall_check(ep))
|
||||
if (nrf_drv_usbd_ep_stall_check(ep)) {
|
||||
nrf_drv_usbd_ep_stall_clear(ep);
|
||||
}
|
||||
|
||||
// Clear data toggle
|
||||
nrf_drv_usbd_ep_dtoggle_clear(ep);
|
||||
|
|
Loading…
Reference in New Issue