Skip to content

Commit e92144e

Browse files
committed
Serial: Initialize tx flags to avoid locks
1 parent 862e4cb commit e92144e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Diff for: cores/arduino/Serial.cpp

+2
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,8 @@ UART::UART(int _pin_tx, int _pin_rx, int _pin_rts, int _pin_cts):
8989
rx_pin(_pin_rx),
9090
rts_pin(_pin_rts),
9191
cts_pin(_pin_cts),
92+
tx_empty(true),
93+
tx_complete(true),
9294
init_ok(false) {
9395
/* -------------------------------------------------------------------------- */
9496
uart_cfg.txi_irq = FSP_INVALID_VECTOR;

0 commit comments

Comments
 (0)