UART: Implement flush()

This commit is contained in:
Daniel Fekete 2017-05-13 21:26:46 +02:00
parent 868a5021e2
commit 5d32faceba
1 changed files with 1 additions and 0 deletions

View File

@ -144,6 +144,7 @@ int SerialUART::peek() {
void SerialUART::flush() {
while(txEnd % BUFFER_SIZE != txStart % BUFFER_SIZE);
}
int SerialUART::read() {