aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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();