From ac3f7512cca3efc919173d863efc4b4a54c89143 Mon Sep 17 00:00:00 2001 From: Mike Smith Date: Mon, 26 Dec 2011 15:52:21 -0800 Subject: [PATCH] Fix issue #423 - FastSerial flush bug. --- libraries/FastSerial/FastSerial.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/FastSerial/FastSerial.cpp b/libraries/FastSerial/FastSerial.cpp index 5312f3d6bf..75c8e850f0 100644 --- a/libraries/FastSerial/FastSerial.cpp +++ b/libraries/FastSerial/FastSerial.cpp @@ -194,7 +194,7 @@ void FastSerial::flush(void) // don't reverse this or there may be problems if the TX interrupt // occurs after reading the value of _txBuffer->tail but before writing // the value to _txBuffer->head. - _txBuffer->tail = _rxBuffer->head; + _txBuffer->tail = _txBuffer->head; } void FastSerial::write(uint8_t c)