git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@4576 35acf78f-673a-0410-8e92-d51de3d6d3f4
This commit is contained in:
parent
e372aabda9
commit
aedb7fddf1
|
@ -368,12 +368,10 @@ void sduDataReceived(USBDriver *usbp, usbep_t ep) {
|
||||||
chSysUnlockFromIsr();
|
chSysUnlockFromIsr();
|
||||||
|
|
||||||
n = (n / maxsize) * maxsize;
|
n = (n / maxsize) * maxsize;
|
||||||
usbPrepareQueuedReceive(usbp,
|
usbPrepareQueuedReceive(usbp, ep, &sdup->iqueue, n);
|
||||||
USB_CDC_DATA_AVAILABLE_EP,
|
|
||||||
&sdup->iqueue, n);
|
|
||||||
|
|
||||||
chSysLockFromIsr();
|
chSysLockFromIsr();
|
||||||
usbStartReceiveI(usbp, USB_CDC_DATA_AVAILABLE_EP);
|
usbStartReceiveI(usbp, ep);
|
||||||
}
|
}
|
||||||
|
|
||||||
chSysUnlockFromIsr();
|
chSysUnlockFromIsr();
|
||||||
|
|
Loading…
Reference in New Issue