From 189d0c7e669b6a3d07ed35c1eaa0bfc8cbc7a729 Mon Sep 17 00:00:00 2001 From: Dean Camera Date: Mon, 22 Jun 2009 11:32:51 +0000 Subject: Add demos/bootloaders/projects overview to the manual. --- Demos/Device/LowLevel/USBtoSerial/USBtoSerial.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Demos/Device/LowLevel') diff --git a/Demos/Device/LowLevel/USBtoSerial/USBtoSerial.c b/Demos/Device/LowLevel/USBtoSerial/USBtoSerial.c index 444aa5e1c..c48c33c08 100644 --- a/Demos/Device/LowLevel/USBtoSerial/USBtoSerial.c +++ b/Demos/Device/LowLevel/USBtoSerial/USBtoSerial.c @@ -237,7 +237,7 @@ void CDC_Task(void) if (Endpoint_IsOUTReceived()) { /* Read the bytes in from the endpoint into the buffer while space is available */ - while (Endpoint_BytesInEndpoint() && (BUFF_STATICSIZE - Rx_Buffer.Elements)) + while (Endpoint_BytesInEndpoint() && (Rx_Buffer.Elements != BUFF_STATICSIZE)) { /* Store each character from the endpoint */ Buffer_StoreElement(&Rx_Buffer, Endpoint_Read_Byte()); -- cgit v1.2.3