mirror of https://github.com/ARMmbed/mbed-os.git
Fix return code check in endpoint abort
Assert that HAL_PCD_EP_Abort returns HAL_OK rather that something else.feature-hal-spec-usb-device
parent
6ca7d2e828
commit
4ce82d714a
|
@ -473,7 +473,7 @@ void USBPhyHw::endpoint_abort(usb_ep_t endpoint)
|
|||
// TODO - stop the current transfer on this endpoint and don't call the IN or OUT callback
|
||||
HAL_StatusTypeDef ret;
|
||||
ret = HAL_PCD_EP_Abort(&hpcd, endpoint);
|
||||
MBED_ASSERT(ret!=HAL_OK);
|
||||
MBED_ASSERT(ret==HAL_OK);
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue