forked from mfulz_github/qmk_firmware
Add extra check for OUT ZLP in the CDC Device Class driver service task to quickly clear zero-length termination packets from the host.
This commit is contained in:
parent
778da9dc6d
commit
cf2776531c
|
@ -118,6 +118,11 @@ void CDC_Device_USBTask(USB_ClassInfo_CDC_Device_t* CDCInterfaceInfo)
|
||||||
if ((USB_DeviceState != DEVICE_STATE_Configured) || !(CDCInterfaceInfo->State.LineEncoding.BaudRateBPS))
|
if ((USB_DeviceState != DEVICE_STATE_Configured) || !(CDCInterfaceInfo->State.LineEncoding.BaudRateBPS))
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
Endpoint_SelectEndpoint(CDCInterfaceInfo->Config.DataOUTEndpointNumber);
|
||||||
|
|
||||||
|
if (Endpoint_IsOUTReceived() && !(Endpoint_BytesInEndpoint()))
|
||||||
|
Endpoint_ClearOUT();
|
||||||
|
|
||||||
CDC_Device_Flush(CDCInterfaceInfo);
|
CDC_Device_Flush(CDCInterfaceInfo);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -12,9 +12,7 @@
|
||||||
* or post your suggestion as an enhancement request to the project bug tracker.
|
* or post your suggestion as an enhancement request to the project bug tracker.
|
||||||
*
|
*
|
||||||
* <b>Targeted for This Release:</b>
|
* <b>Targeted for This Release:</b>
|
||||||
* - Finish Host Mode Class Drivers, re-enable in makefile, add demo summaries
|
* - Finish HID and Still Image Host Mode Class Drivers, add demo summaries, add return codes to all relevant functions
|
||||||
* (S) HID
|
|
||||||
* ( ) Still Image
|
|
||||||
* - Add overviews of each of the officially supported boards to the manual
|
* - 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
|
* - 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
|
* - Add in new invalid event hook check targets to project makefiles
|
||||||
|
|
Loading…
Reference in New Issue