Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Serial: initialize tx flags to avoid locks
  • Loading branch information
pennam committed Nov 29, 2024
commit 51e2905a93b4bde2daf97622d7d8a8593b9f8f62
2 changes: 2 additions & 0 deletions cores/arduino/Serial.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down