diff options
author | Dean Camera <[email protected]> | 2009-06-22 11:32:51 +0000 |
---|---|---|
committer | Dean Camera <[email protected]> | 2009-06-22 11:32:51 +0000 |
commit | 189d0c7e669b6a3d07ed35c1eaa0bfc8cbc7a729 (patch) | |
tree | 732acaa806b8e7c6cbdeb73f09a2ce3a95f5830d /Demos | |
parent | 7d7573e4e554f4b17686a915eba0da12fbebc2ed (diff) | |
download | qmk_firmware-189d0c7e669b6a3d07ed35c1eaa0bfc8cbc7a729.tar.gz qmk_firmware-189d0c7e669b6a3d07ed35c1eaa0bfc8cbc7a729.zip |
Add demos/bootloaders/projects overview to the manual.
Diffstat (limited to 'Demos')
-rw-r--r-- | Demos/Device/LowLevel/USBtoSerial/USBtoSerial.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Demos/Device/LowLevel/USBtoSerial/USBtoSerial.c b/Demos/Device/LowLevel/USBtoSerial/USBtoSerial.c index 444aa5e1ca..c48c33c083 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());
|