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

Diff for: libraries/SoftwareSerial/src/SoftwareSerial.cpp

+2
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)