We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
arduino
Learn more about funding links in repositories.
Report abuse
There was an error while loading. Please reload this page.
1 parent 9b439c5 commit a6ec0b8Copy full SHA for a6ec0b8
cores/arduino/Serial.cpp
@@ -62,9 +62,8 @@ void UART::WrapperCallback(uart_callback_args_t *p_args) {
62
case UART_EVENT_TX_DATA_EMPTY:
63
{
64
if(uart_ptr->txBuffer.available()){
65
- static char txc;
66
- txc = uart_ptr->txBuffer.read_char();
67
- R_SCI_UART_Write(&(uart_ptr->uart_ctrl), (uint8_t*)&txc , 1);
+ uart_ptr->txc = uart_ptr->txBuffer.read_char();
+ R_SCI_UART_Write(&(uart_ptr->uart_ctrl), (uint8_t*)&(uart_ptr->txc) , 1);
68
} else {
69
uart_ptr->tx_done = true;
70
}
0 commit comments