From bd08227988e241ebc766053ce1d27291d20ebcd6 Mon Sep 17 00:00:00 2001 From: Dean Date: Sat, 31 Jul 2010 06:55:47 +0000 Subject: Fixed Serial peripheral driver not turning off the USART before reconfiguring it, which would cause incorrect operation to occur (thanks to Bob Paddock). git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1428 d5102386-fcda-11dd-9fdb-3debd5008f28 --- Projects/USBtoSerial/USBtoSerial.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Projects/USBtoSerial/USBtoSerial.c') diff --git a/Projects/USBtoSerial/USBtoSerial.c b/Projects/USBtoSerial/USBtoSerial.c index d7df3d91..4f3fcf52 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); -- cgit v1.2.3