From 51e2905a93b4bde2daf97622d7d8a8593b9f8f62 Mon Sep 17 00:00:00 2001 From: pennam Date: Fri, 29 Nov 2024 12:17:11 +0100 Subject: [PATCH] Serial: initialize tx flags to avoid locks --- cores/arduino/Serial.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cores/arduino/Serial.cpp b/cores/arduino/Serial.cpp index 755ef801..e82d7679 100644 --- a/cores/arduino/Serial.cpp +++ b/cores/arduino/Serial.cpp @@ -89,6 +89,8 @@ UART::UART(int _pin_tx, int _pin_rx, int _pin_rts, int _pin_cts): rx_pin(_pin_rx), rts_pin(_pin_rts), cts_pin(_pin_cts), + tx_empty(true), + tx_complete(true), init_ok(false) { /* -------------------------------------------------------------------------- */ uart_cfg.txi_irq = FSP_INVALID_VECTOR;