projects
/
pub
/
USBasp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add demos/bootloaders/projects overview to the manual.
[pub/USBasp.git]
/
Demos
/
Device
/
LowLevel
/
USBtoSerial
/
USBtoSerial.c
diff --git
a/Demos/Device/LowLevel/USBtoSerial/USBtoSerial.c
b/Demos/Device/LowLevel/USBtoSerial/USBtoSerial.c
index
444aa5e
..
c48c33c
100644
(file)
--- 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())
\r
{
\r
/* Read the bytes in from the endpoint into the buffer while space is available */
\r
if (Endpoint_IsOUTReceived())
\r
{
\r
/* Read the bytes in from the endpoint into the buffer while space is available */
\r
- while (Endpoint_BytesInEndpoint() && (
BUFF_STATICSIZE - Rx_Buffer.Elements
))
\r
+ while (Endpoint_BytesInEndpoint() && (
Rx_Buffer.Elements != BUFF_STATICSIZE
))
\r
{
\r
/* Store each character from the endpoint */
\r
Buffer_StoreElement(&Rx_Buffer, Endpoint_Read_Byte());
\r
{
\r
/* Store each character from the endpoint */
\r
Buffer_StoreElement(&Rx_Buffer, Endpoint_Read_Byte());
\r