aboutsummaryrefslogtreecommitdiffstats
path: root/Projects/USBtoSerial
diff options
context:
space:
mode:
authorDean Camera <dean@fourwalledcubicle.com>2013-05-14 22:23:17 +0200
committerDean Camera <dean@fourwalledcubicle.com>2013-05-14 22:23:17 +0200
commit3d0e6d055b716d4e86dc5665a58167923aa1fff6 (patch)
tree69ee8e946667953780fde0df6c80c4f6d3ba9a30 /Projects/USBtoSerial
parent0d800753877be372150721120452b9147a55e764 (diff)
downloadlufa-3d0e6d055b716d4e86dc5665a58167923aa1fff6.tar.gz
lufa-3d0e6d055b716d4e86dc5665a58167923aa1fff6.tar.bz2
lufa-3d0e6d055b716d4e86dc5665a58167923aa1fff6.zip
Minor documentation improvements.
Diffstat (limited to 'Projects/USBtoSerial')
-rw-r--r--Projects/USBtoSerial/USBtoSerial.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/Projects/USBtoSerial/USBtoSerial.c b/Projects/USBtoSerial/USBtoSerial.c
index a500c8376..76e3cb837 100644
--- a/Projects/USBtoSerial/USBtoSerial.c
+++ b/Projects/USBtoSerial/USBtoSerial.c
@@ -99,12 +99,11 @@ int main(void)
{
int16_t ReceivedByte = CDC_Device_ReceiveByte(&VirtualSerial_CDC_Interface);
- /* Read bytes from the USB OUT endpoint into the USART transmit buffer */
+ /* Store received byte into the USART transmit buffer */
if (!(ReceivedByte < 0))
RingBuffer_Insert(&USBtoUSART_Buffer, ReceivedByte);
}
- /* Check if the UART receive buffer flush timer has expired or the buffer is nearly full */
uint16_t BufferCount = RingBuffer_GetCount(&USARTtoUSB_Buffer);
if (BufferCount)
{