aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDiego Ismirlian <dismirlian (at) google's mail.com>2017-06-08 12:37:24 -0300
committerDiego Ismirlian <dismirlian (at) google's mail.com>2017-06-08 12:37:24 -0300
commit78da47995546bcc1a321ffeff60314172919a573 (patch)
tree538afb01ccba54944303943164d148f438995f44
parentb9f0fc24c59702e51b205f1ee9295bcaee71cb07 (diff)
downloadChibiOS-Contrib-78da47995546bcc1a321ffeff60314172919a573.tar.gz
ChibiOS-Contrib-78da47995546bcc1a321ffeff60314172919a573.tar.bz2
ChibiOS-Contrib-78da47995546bcc1a321ffeff60314172919a573.zip
USBH: STM32 lld, activate correction of unexpected length
-rw-r--r--os/hal/ports/STM32/LLD/USBHv1/hal_usbh_lld.c2
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) {