Skip to content

Commit e773fec

Browse files
dominikbersefpistm
authored andcommitted
fix(SoftwareSerial): correct TX to RX switch when using half-duplex
1 parent f0a043e commit e773fec

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

libraries/SoftwareSerial/src/SoftwareSerial.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -157,6 +157,8 @@ bool SoftwareSerial::listen()
157157
active_listener = this;
158158
if (!_half_duplex) {
159159
active_in = this;
160+
} else if (!active_out) {
161+
setRXTX(true);
160162
}
161163
return true;
162164
}

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy