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
Russ Butler 2018-05-03 18:07:02 -05:00
parent 6ca7d2e828
commit 4ce82d714a
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}