diff options
author | Dean Camera <[email protected]> | 2010-07-31 06:55:47 +0000 |
---|---|---|
committer | Dean Camera <[email protected]> | 2010-07-31 06:55:47 +0000 |
commit | 9597b33c3320969b8ca53aff0b1b38ee1fa24949 (patch) | |
tree | ad279011a88faca732b49d6bf1c2a362dd28417e /Projects | |
parent | 612df774d9fbddc2e9cb36e6bca849746aa925f5 (diff) | |
download | qmk_firmware-9597b33c3320969b8ca53aff0b1b38ee1fa24949.tar.gz qmk_firmware-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')
-rw-r--r-- | Projects/USBtoSerial/USBtoSerial.c | 2 | ||||
-rw-r--r-- | Projects/XPLAINBridge/XPLAINBridge.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/Projects/USBtoSerial/USBtoSerial.c b/Projects/USBtoSerial/USBtoSerial.c index d7df3d91fb..4f3fcf524d 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); diff --git a/Projects/XPLAINBridge/XPLAINBridge.c b/Projects/XPLAINBridge/XPLAINBridge.c index 7a1bcb34de..7272fd8256 100644 --- a/Projects/XPLAINBridge/XPLAINBridge.c +++ b/Projects/XPLAINBridge/XPLAINBridge.c @@ -124,7 +124,7 @@ void UARTBridge_Task(void) if (!(ReceivedByte < 0) && !(RingBuffer_IsFull(&USBtoUART_Buffer))) RingBuffer_AtomicInsert(&USBtoUART_Buffer, CDC_Device_ReceiveByte(&VirtualSerial_CDC_Interface)); - /* Check if the software UART flush timer has expired */ + /* Check if the UART receive buffer flush timer has expired */ if (TIFR0 & (1 << TOV0)) { TIFR0 |= (1 << TOV0); |