aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorgdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2012-08-17 12:43:40 +0000
committergdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2012-08-17 12:43:40 +0000
commitaedb7fddf11a5c5fad8b1a7a15d22534f145c763 (patch)
tree40138d91f493894f2c11132d682f2c0bb00b2357
parente372aabda9da9309671e058839d668ec38c7e8c1 (diff)
downloadChibiOS-aedb7fddf11a5c5fad8b1a7a15d22534f145c763.tar.gz
ChibiOS-aedb7fddf11a5c5fad8b1a7a15d22534f145c763.tar.bz2
ChibiOS-aedb7fddf11a5c5fad8b1a7a15d22534f145c763.zip
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@4576 35acf78f-673a-0410-8e92-d51de3d6d3f4
-rw-r--r--os/hal/src/serial_usb.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/os/hal/src/serial_usb.c b/os/hal/src/serial_usb.c
index f05c341fc..9b36be413 100644
--- a/os/hal/src/serial_usb.c
+++ b/os/hal/src/serial_usb.c
@@ -368,12 +368,10 @@ void sduDataReceived(USBDriver *usbp, usbep_t ep) {
chSysUnlockFromIsr();
n = (n / maxsize) * maxsize;
- usbPrepareQueuedReceive(usbp,
- USB_CDC_DATA_AVAILABLE_EP,
- &sdup->iqueue, n);
+ usbPrepareQueuedReceive(usbp, ep, &sdup->iqueue, n);
chSysLockFromIsr();
- usbStartReceiveI(usbp, USB_CDC_DATA_AVAILABLE_EP);
+ usbStartReceiveI(usbp, ep);
}
chSysUnlockFromIsr();