USB device stack, fixes for USBSerial, lightweight without malloc (RTOS ready)
Fork of USBDevice by
Diff: USBDevice/USBDevice.cpp
- Revision:
- 26:419386cf801c
- Parent:
- 18:78bdbce94509
diff -r f0299e22d4c0 -r 419386cf801c USBDevice/USBDevice.cpp --- 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; }