From 1b2cd16976207c21bbdfbd15852b0afa92c0f516 Mon Sep 17 00:00:00 2001 From: Dean Camera Date: Mon, 30 Nov 2009 02:20:26 +0000 Subject: Added CDC_Host_Flush() function to the CDC Host Class driver to flush sent data to the attached device. --- Demos/Host/ClassDriver/CDCHost/CDCHost.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'Demos/Host/ClassDriver/CDCHost/CDCHost.c') 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; -- cgit v1.2.3