aboutsummaryrefslogtreecommitdiffstats
path: root/Demos/Host
diff options
context:
space:
mode:
authorDean Camera <dean@fourwalledcubicle.com>2009-11-30 02:20:26 +0000
committerDean Camera <dean@fourwalledcubicle.com>2009-11-30 02:20:26 +0000
commit1b2cd16976207c21bbdfbd15852b0afa92c0f516 (patch)
tree8e29d5c4e1b680790b358331e26d68e4ed3c4b10 /Demos/Host
parentb7f6a65c258cafc3111d77502b491f223b886a33 (diff)
downloadlufa-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.c2
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;