mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-10 18:08:30 -04:00
Fix issue #423 - FastSerial flush bug.
This commit is contained in:
parent
234121f3c3
commit
3582ad4e20
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user