diff options
author | Dean Camera <dean@fourwalledcubicle.com> | 2009-09-10 06:41:57 +0000 |
---|---|---|
committer | Dean Camera <dean@fourwalledcubicle.com> | 2009-09-10 06:41:57 +0000 |
commit | e918d977b1d4465d525ee0f742dbdeec20f7885c (patch) | |
tree | 4da2b0cb02f251dcb1527cb2b205a5dc0123e3cd /LUFA/Drivers/USB/Class/Device/CDC.h | |
parent | b221e7d175e4b5ca463fdd6d05b8c3fc71bd7c40 (diff) | |
download | lufa-e918d977b1d4465d525ee0f742dbdeec20f7885c.tar.gz lufa-e918d977b1d4465d525ee0f742dbdeec20f7885c.tar.bz2 lufa-e918d977b1d4465d525ee0f742dbdeec20f7885c.zip |
Prevent the CDC Device Class driver from sending empty IN packets on every service task call - only send termination packets when data is in the endpoint.
Diffstat (limited to 'LUFA/Drivers/USB/Class/Device/CDC.h')
-rw-r--r-- | LUFA/Drivers/USB/Class/Device/CDC.h | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/LUFA/Drivers/USB/Class/Device/CDC.h b/LUFA/Drivers/USB/Class/Device/CDC.h index 5905474ce..605c3b7e9 100644 --- a/LUFA/Drivers/USB/Class/Device/CDC.h +++ b/LUFA/Drivers/USB/Class/Device/CDC.h @@ -192,10 +192,8 @@ /** Flushes any data waiting to be sent, ensuring that the send buffer is cleared.
*
* \param[in,out] CDCInterfaceInfo Pointer to a structure containing a CDC Class configuration and state.
- *
- * \return A value from the \ref Endpoint_WaitUntilReady_ErrorCodes_t enum
*/
- uint8_t CDC_Device_Flush(USB_ClassInfo_CDC_Device_t* const CDCInterfaceInfo) ATTR_NON_NULL_PTR_ARG(1);
+ void CDC_Device_Flush(USB_ClassInfo_CDC_Device_t* const CDCInterfaceInfo) ATTR_NON_NULL_PTR_ARG(1);
/** Sends a Serial Control Line State Change notification to the host. This should be called when the virtual serial
* control lines (DCD, DSR, etc.) have changed states, or to give BREAK notfications to the host. Line states persist
|