Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 51e2905

Browse files
committed
Serial: initialize tx flags to avoid locks
1 parent 443a404 commit 51e2905

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

‎cores/arduino/Serial.cpp‎

Lines changed: 2 additions & 0 deletions
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)

AltStyle によって変換されたページ (->オリジナル) /