Skip to content

Commit a259f9c

Browse files
committed
Merge branch 'sam-serial-flush-tx-empty' of https://github.com/sandeepmistry/Arduino
2 parents 13d8fa4 + 435f679 commit a259f9c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

hardware/arduino/sam/cores/arduino/UARTClass.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ void UARTClass::flush( void )
138138
{
139139
while (_tx_buffer->_iHead != _tx_buffer->_iTail); //wait for transmit data to be sent
140140
// Wait for transmission to complete
141-
while ((_pUart->UART_SR & UART_SR_TXRDY) != UART_SR_TXRDY)
141+
while ((_pUart->UART_SR & UART_SR_TXEMPTY) != UART_SR_TXEMPTY)
142142
;
143143
}
144144

0 commit comments

Comments
 (0)