Fix issue #423 - FastSerial flush bug.

This commit is contained in:
Mike Smith 2011-12-26 15:52:21 -08:00
parent a8070d86df
commit ac3f7512cc
1 changed files with 1 additions and 1 deletions

View File

@ -194,7 +194,7 @@ void FastSerial::flush(void)
// don't reverse this or there may be problems if the TX interrupt // don't reverse this or there may be problems if the TX interrupt
// occurs after reading the value of _txBuffer->tail but before writing // occurs after reading the value of _txBuffer->tail but before writing
// the value to _txBuffer->head. // the value to _txBuffer->head.
_txBuffer->tail = _rxBuffer->head; _txBuffer->tail = _txBuffer->head;
} }
void FastSerial::write(uint8_t c) void FastSerial::write(uint8_t c)