From 954a365b01c1c755752e61f600408fe72759f47c Mon Sep 17 00:00:00 2001 From: gdisirio Date: Sat, 15 Sep 2012 18:14:43 +0000 Subject: Fixed bug 3567992. git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@4665 35acf78f-673a-0410-8e92-d51de3d6d3f4 --- os/hal/src/serial_usb.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'os/hal') diff --git a/os/hal/src/serial_usb.c b/os/hal/src/serial_usb.c index 9b36be413..9cef45524 100644 --- a/os/hal/src/serial_usb.c +++ b/os/hal/src/serial_usb.c @@ -260,6 +260,11 @@ void sduConfigureHookI(USBDriver *usbp) { chIQResetI(&sdup->iqueue); chOQResetI(&sdup->oqueue); chnAddFlagsI(sdup, CHN_CONNECTED); + + /* Starts the first OUT transaction immediately.*/ + usbPrepareQueuedReceive(usbp, USB_CDC_DATA_AVAILABLE_EP, &sdup->iqueue, + usbp->epc[USB_CDC_DATA_AVAILABLE_EP]->out_maxsize); + usbStartReceiveI(usbp, USB_CDC_DATA_AVAILABLE_EP); } /** -- cgit v1.2.3