mirror of https://github.com/noisymime/Arduino.git
Merge branch 'sam-serial-flush-tx-empty' of https://github.com/sandeepmistry/Arduino
This commit is contained in:
commit
a259f9c6dc
|
@ -138,7 +138,7 @@ void UARTClass::flush( void )
|
|||
{
|
||||
while (_tx_buffer->_iHead != _tx_buffer->_iTail); //wait for transmit data to be sent
|
||||
// Wait for transmission to complete
|
||||
while ((_pUart->UART_SR & UART_SR_TXRDY) != UART_SR_TXRDY)
|
||||
while ((_pUart->UART_SR & UART_SR_TXEMPTY) != UART_SR_TXEMPTY)
|
||||
;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue