USBH: STM32 lld, activate correction of unexpected length

This commit is contained in:
Diego Ismirlian 2017-06-08 12:37:24 -03:00
parent b9f0fc24c5
commit 78da479955
1 changed files with 1 additions and 1 deletions

View File

@ -387,7 +387,7 @@ static bool _update_urb(usbh_ep_t *ep, uint32_t hctsiz, usbh_urb_t *urb, bool co
osalDbgCheck(len == ep->xfer.partial); //TODO: if len == ep->xfer.partial, use this instead of the above code
}
#if 1
#if 0
osalDbgAssert(urb->actualLength + len <= urb->requestedLength, "what happened?");
#else
if (urb->actualLength + len > urb->requestedLength) {