diff options
author | Dean Camera <dean@fourwalledcubicle.com> | 2009-11-30 02:20:26 +0000 |
---|---|---|
committer | Dean Camera <dean@fourwalledcubicle.com> | 2009-11-30 02:20:26 +0000 |
commit | 1b2cd16976207c21bbdfbd15852b0afa92c0f516 (patch) | |
tree | 8e29d5c4e1b680790b358331e26d68e4ed3c4b10 /Demos/Host | |
parent | b7f6a65c258cafc3111d77502b491f223b886a33 (diff) | |
download | lufa-1b2cd16976207c21bbdfbd15852b0afa92c0f516.tar.gz lufa-1b2cd16976207c21bbdfbd15852b0afa92c0f516.tar.bz2 lufa-1b2cd16976207c21bbdfbd15852b0afa92c0f516.zip |
Added CDC_Host_Flush() function to the CDC Host Class driver to flush sent data to the attached device.
Diffstat (limited to 'Demos/Host')
-rw-r--r-- | Demos/Host/ClassDriver/CDCHost/CDCHost.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Demos/Host/ClassDriver/CDCHost/CDCHost.c b/Demos/Host/ClassDriver/CDCHost/CDCHost.c index 42fae013a..4b08f7d57 100644 --- a/Demos/Host/ClassDriver/CDCHost/CDCHost.c +++ b/Demos/Host/ClassDriver/CDCHost/CDCHost.c @@ -111,6 +111,8 @@ int main(void) /* Echo received bytes from the attached device through the USART */
while (CDC_Host_BytesReceived(&VirtualSerial_CDC_Interface))
putchar(CDC_Host_ReceiveByte(&VirtualSerial_CDC_Interface));
+
+ CDC_Host_Flush(&VirtualSerial_CDC_Interface);
}
break;
|