aboutsummaryrefslogtreecommitdiffstats
path: root/os/hal
diff options
context:
space:
mode:
authorDiego Ismirlian <dismirlian (at) google's mail.com>2017-08-07 17:52:51 -0300
committerDiego Ismirlian <dismirlian (at) google's mail.com>2017-08-07 17:52:51 -0300
commit84f28dd0b1916890081d5b205835741a9ae2a8b6 (patch)
tree18a938b178a0861431f6431e753664cb29924a69 /os/hal
parent21f95b50f40e9b558709006c73e14367851c3b67 (diff)
downloadChibiOS-Contrib-84f28dd0b1916890081d5b205835741a9ae2a8b6.tar.gz
ChibiOS-Contrib-84f28dd0b1916890081d5b205835741a9ae2a8b6.tar.bz2
ChibiOS-Contrib-84f28dd0b1916890081d5b205835741a9ae2a8b6.zip
USBH: FTDI: correct bugs
Diffstat (limited to 'os/hal')
-rw-r--r--os/hal/src/usbh/hal_usbh_ftdi.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/os/hal/src/usbh/hal_usbh_ftdi.c b/os/hal/src/usbh/hal_usbh_ftdi.c
index 6e33867..6fb556d 100644
--- a/os/hal/src/usbh/hal_usbh_ftdi.c
+++ b/os/hal/src/usbh/hal_usbh_ftdi.c
@@ -415,7 +415,7 @@ static void _out_cb(usbh_urb_t *urb) {
return;
case USBH_URBSTATUS_DISCONNECTED:
uwarn("FTDI: URB OUT disconnected");
- chThdDequeueNextI(&ftdipp->oq_waiting, Q_RESET);
+ chThdDequeueAllI(&ftdipp->oq_waiting, Q_RESET);
return;
default:
uerrf("FTDI: URB OUT status unexpected = %d", urb->status);
@@ -516,12 +516,12 @@ static void _in_cb(usbh_urb_t *urb) {
udbgf("FTDI: URB IN no data, status=%02x %02x",
((uint8_t *)urb->buff)[0],
((uint8_t *)urb->buff)[1]);
- return;
+ // return;
}
break;
case USBH_URBSTATUS_DISCONNECTED:
uwarn("FTDI: URB IN disconnected");
- chThdDequeueNextI(&ftdipp->iq_waiting, Q_RESET);
+ chThdDequeueAllI(&ftdipp->iq_waiting, Q_RESET);
return;
default:
uerrf("FTDI: URB IN status unexpected = %d", urb->status);