USB device stack, fixes for USBSerial, lightweight without malloc (RTOS ready)

Dependents:   EMIRv2

Fork of USBDevice by Ales Povalac

Revision:
26:419386cf801c
Parent:
18:78bdbce94509
--- a/USBDevice/USBDevice.cpp	Tue May 06 20:34:33 2014 +0000
+++ b/USBDevice/USBDevice.cpp	Wed Jul 30 19:01:27 2014 +0000
@@ -187,6 +187,8 @@
     /* Check we should be transferring data OUT */
     if (transfer.direction != HOST_TO_DEVICE)
     {
+        controlIn();
+        if (transfer.direction != HOST_TO_DEVICE)
         return false;
     }