From aedb7fddf11a5c5fad8b1a7a15d22534f145c763 Mon Sep 17 00:00:00 2001 From: gdisirio Date: Fri, 17 Aug 2012 12:43:40 +0000 Subject: git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@4576 35acf78f-673a-0410-8e92-d51de3d6d3f4 --- os/hal/src/serial_usb.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'os/hal') 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(); -- cgit v1.2.3