aboutsummaryrefslogtreecommitdiffstats
path: root/Projects/USBtoSerial
diff options
context:
space:
mode:
authorDean Camera <dean@fourwalledcubicle.com>2010-07-31 06:55:47 +0000
committerDean Camera <dean@fourwalledcubicle.com>2010-07-31 06:55:47 +0000
commit9597b33c3320969b8ca53aff0b1b38ee1fa24949 (patch)
treead279011a88faca732b49d6bf1c2a362dd28417e /Projects/USBtoSerial
parent612df774d9fbddc2e9cb36e6bca849746aa925f5 (diff)
downloadlufa-9597b33c3320969b8ca53aff0b1b38ee1fa24949.tar.gz
lufa-9597b33c3320969b8ca53aff0b1b38ee1fa24949.tar.bz2
lufa-9597b33c3320969b8ca53aff0b1b38ee1fa24949.zip
Fixed Serial peripheral driver not turning off the USART before reconfiguring it, which would cause incorrect operation to occur (thanks to Bob Paddock).
Diffstat (limited to 'Projects/USBtoSerial')
-rw-r--r--Projects/USBtoSerial/USBtoSerial.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Projects/USBtoSerial/USBtoSerial.c b/Projects/USBtoSerial/USBtoSerial.c
index d7df3d91f..4f3fcf524 100644
--- a/Projects/USBtoSerial/USBtoSerial.c
+++ b/Projects/USBtoSerial/USBtoSerial.c
@@ -86,7 +86,7 @@ int main(void)
if (!(ReceivedByte < 0) && !(RingBuffer_IsFull(&USBtoUSART_Buffer)))
RingBuffer_AtomicInsert(&USBtoUSART_Buffer, (uint8_t)ReceivedByte);
- /* Check if the software USART flush timer has expired */
+ /* Check if the UART receive buffer flush timer has expired */
if (TIFR0 & (1 << TOV0))
{
TIFR0 |= (1 << TOV0);