From 036a156ff4518212ee1db487ce644deeca91bb71 Mon Sep 17 00:00:00 2001 From: Dean Camera Date: Sat, 12 Jun 2010 08:39:12 +0000 Subject: Slight improvements to the reliability of the software UART in the XPLAINBridge project. --- LUFA/Drivers/USB/Class/Device/CDC.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'LUFA') diff --git a/LUFA/Drivers/USB/Class/Device/CDC.c b/LUFA/Drivers/USB/Class/Device/CDC.c index 69295e5e4..6eabb240e 100644 --- a/LUFA/Drivers/USB/Class/Device/CDC.c +++ b/LUFA/Drivers/USB/Class/Device/CDC.c @@ -154,7 +154,7 @@ uint8_t CDC_Device_SendByte(USB_ClassInfo_CDC_Device_t* const CDCInterfaceInfo, Endpoint_SelectEndpoint(CDCInterfaceInfo->Config.DataINEndpointNumber); if (!(Endpoint_IsReadWriteAllowed())) - { + { Endpoint_ClearIN(); uint8_t ErrorCode; -- cgit v1.2.3