diff options
author | Dean Camera <dean@fourwalledcubicle.com> | 2009-08-31 12:43:28 +0000 |
---|---|---|
committer | Dean Camera <dean@fourwalledcubicle.com> | 2009-08-31 12:43:28 +0000 |
commit | cf2776531c04b0ebe4fdd9d4ef5324dacefd5639 (patch) | |
tree | 77b16f5d7549c309950e0c0b9eadc527382ba613 /LUFA | |
parent | 778da9dc6d48c670b9fb0ce219e8df083a33e0c6 (diff) | |
download | lufa-cf2776531c04b0ebe4fdd9d4ef5324dacefd5639.tar.gz lufa-cf2776531c04b0ebe4fdd9d4ef5324dacefd5639.tar.bz2 lufa-cf2776531c04b0ebe4fdd9d4ef5324dacefd5639.zip |
Add extra check for OUT ZLP in the CDC Device Class driver service task to quickly clear zero-length termination packets from the host.
Diffstat (limited to 'LUFA')
-rw-r--r-- | LUFA/Drivers/USB/Class/Device/CDC.c | 5 | ||||
-rw-r--r-- | LUFA/ManPages/FutureChanges.txt | 4 |
2 files changed, 6 insertions, 3 deletions
diff --git a/LUFA/Drivers/USB/Class/Device/CDC.c b/LUFA/Drivers/USB/Class/Device/CDC.c index 31fd8f1b0..816a5f13d 100644 --- a/LUFA/Drivers/USB/Class/Device/CDC.c +++ b/LUFA/Drivers/USB/Class/Device/CDC.c @@ -118,6 +118,11 @@ void CDC_Device_USBTask(USB_ClassInfo_CDC_Device_t* CDCInterfaceInfo) if ((USB_DeviceState != DEVICE_STATE_Configured) || !(CDCInterfaceInfo->State.LineEncoding.BaudRateBPS))
return;
+ Endpoint_SelectEndpoint(CDCInterfaceInfo->Config.DataOUTEndpointNumber);
+
+ if (Endpoint_IsOUTReceived() && !(Endpoint_BytesInEndpoint()))
+ Endpoint_ClearOUT();
+
CDC_Device_Flush(CDCInterfaceInfo);
}
diff --git a/LUFA/ManPages/FutureChanges.txt b/LUFA/ManPages/FutureChanges.txt index 669b94e07..5ba3f9c89 100644 --- a/LUFA/ManPages/FutureChanges.txt +++ b/LUFA/ManPages/FutureChanges.txt @@ -12,9 +12,7 @@ * or post your suggestion as an enhancement request to the project bug tracker.
*
* <b>Targeted for This Release:</b>
- * - Finish Host Mode Class Drivers, re-enable in makefile, add demo summaries
- * (S) HID
- * ( ) Still Image
+ * - Finish HID and Still Image Host Mode Class Drivers, add demo summaries, add return codes to all relevant functions
* - Add overviews of each of the officially supported boards to the manual
* - Re-add in flip, flip-ee, dfu and dfu-ee targets to project makefiles
* - Add in new invalid event hook check targets to project makefiles
|