UART: Implement flush()
This commit is contained in:
parent
868a5021e2
commit
5d32faceba
|
@ -144,6 +144,7 @@ int SerialUART::peek() {
|
|||
|
||||
void SerialUART::flush() {
|
||||
|
||||
while(txEnd % BUFFER_SIZE != txStart % BUFFER_SIZE);
|
||||
}
|
||||
|
||||
int SerialUART::read() {
|
||||
|
|
Loading…
Reference in New Issue