Skip to content

Commit

Permalink
Serial: Initialize tx flags to avoid locks
Browse files Browse the repository at this point in the history
  • Loading branch information
pennam committed Nov 29, 2024
1 parent 862e4cb commit e92144e
Showing 1 changed file with 2 additions and 0 deletions.
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

0 comments on commit e92144e

Please sign in to comment.