diff options
author | Diego Ismirlian <dismirlian (at) google's mail.com> | 2017-06-08 12:37:24 -0300 |
---|---|---|
committer | Diego Ismirlian <dismirlian (at) google's mail.com> | 2017-06-08 12:37:24 -0300 |
commit | 78da47995546bcc1a321ffeff60314172919a573 (patch) | |
tree | 538afb01ccba54944303943164d148f438995f44 /os/hal/ports/STM32/LLD/USBHv1 | |
parent | b9f0fc24c59702e51b205f1ee9295bcaee71cb07 (diff) | |
download | ChibiOS-Contrib-78da47995546bcc1a321ffeff60314172919a573.tar.gz ChibiOS-Contrib-78da47995546bcc1a321ffeff60314172919a573.tar.bz2 ChibiOS-Contrib-78da47995546bcc1a321ffeff60314172919a573.zip |
USBH: STM32 lld, activate correction of unexpected length
Diffstat (limited to 'os/hal/ports/STM32/LLD/USBHv1')
-rw-r--r-- | os/hal/ports/STM32/LLD/USBHv1/hal_usbh_lld.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/os/hal/ports/STM32/LLD/USBHv1/hal_usbh_lld.c b/os/hal/ports/STM32/LLD/USBHv1/hal_usbh_lld.c index 7981695..5954cb2 100644 --- a/os/hal/ports/STM32/LLD/USBHv1/hal_usbh_lld.c +++ b/os/hal/ports/STM32/LLD/USBHv1/hal_usbh_lld.c @@ -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) { |