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.pull/9768/head
parent
ced1cbd0ed
commit
3f45a81a81
|
|
@ -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