Skip to content

Commit

Permalink
Update the function of flush
Browse files Browse the repository at this point in the history
Update the function of flush
  • Loading branch information
Quency-D committed Jun 5, 2023
1 parent 1b5829b commit 16549f2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cores/asr650x/Serial/HardwareSerial.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -317,13 +317,13 @@ void HardwareSerial::flush()
{
UART_1_SpiUartClearRxBuffer();
while (UART_1_SpiUartGetTxBufferSize());
UART_1_SpiUartClearTxBuffer();
// UART_1_SpiUartClearTxBuffer();
}
else
{
UART_2_SpiUartClearRxBuffer();
while (UART_2_SpiUartGetTxBufferSize());
UART_2_SpiUartClearTxBuffer();
// UART_2_SpiUartClearTxBuffer();
}
}

Expand Down

0 comments on commit 16549f2

Please sign in to comment.