Fix issue #423 - FastSerial flush bug.

This commit is contained in:
Mike Smith 2011-12-26 15:52:21 -08:00
parent 234121f3c3
commit 3582ad4e20

View File

@ -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)