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)