Add extra check for OUT ZLP in the CDC Device Class driver service task to quickly...
authorDean Camera <dean@fourwalledcubicle.com>
Mon, 31 Aug 2009 12:43:28 +0000 (12:43 +0000)
committerDean Camera <dean@fourwalledcubicle.com>
Mon, 31 Aug 2009 12:43:28 +0000 (12:43 +0000)
LUFA/Drivers/USB/Class/Device/CDC.c
LUFA/ManPages/FutureChanges.txt

index 31fd8f1..816a5f1 100644 (file)
@@ -118,6 +118,11 @@ void CDC_Device_USBTask(USB_ClassInfo_CDC_Device_t* CDCInterfaceInfo)
        if ((USB_DeviceState != DEVICE_STATE_Configured) || !(CDCInterfaceInfo->State.LineEncoding.BaudRateBPS))\r
          return;\r
 \r
        if ((USB_DeviceState != DEVICE_STATE_Configured) || !(CDCInterfaceInfo->State.LineEncoding.BaudRateBPS))\r
          return;\r
 \r
+       Endpoint_SelectEndpoint(CDCInterfaceInfo->Config.DataOUTEndpointNumber);\r
+\r
+       if (Endpoint_IsOUTReceived() && !(Endpoint_BytesInEndpoint()))\r
+         Endpoint_ClearOUT();\r
+         \r
        CDC_Device_Flush(CDCInterfaceInfo);\r
 }\r
 \r
        CDC_Device_Flush(CDCInterfaceInfo);\r
 }\r
 \r
index 669b94e..5ba3f9c 100644 (file)
@@ -12,9 +12,7 @@
   *  or post your suggestion as an enhancement request to the project bug tracker.\r
   *\r
   *  <b>Targeted for This Release:</b>\r
   *  or post your suggestion as an enhancement request to the project bug tracker.\r
   *\r
   *  <b>Targeted for This Release:</b>\r
-  *  - Finish Host Mode Class Drivers, re-enable in makefile, add demo summaries\r
-  *      (S) HID\r
-  *      ( ) Still Image\r
+  *  - Finish HID and Still Image Host Mode Class Drivers, add demo summaries, add return codes to all relevant functions\r
   *  - Add overviews of each of the officially supported boards to the manual\r
   *  - Re-add in flip, flip-ee, dfu and dfu-ee targets to project makefiles\r
   *  - Add in new invalid event hook check targets to project makefiles\r
   *  - Add overviews of each of the officially supported boards to the manual\r
   *  - Re-add in flip, flip-ee, dfu and dfu-ee targets to project makefiles\r
   *  - Add in new invalid event hook check targets to project makefiles\r