From c7e967756cf2f06a692aaa1417fb8106ec41d508 Mon Sep 17 00:00:00 2001 From: Dominik Berse Date: Fri, 22 Jul 2022 16:27:52 +0200 Subject: [PATCH] fix(SoftwareSerial): correct TX to RX switch when using half-duplex --- libraries/SoftwareSerial/src/SoftwareSerial.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libraries/SoftwareSerial/src/SoftwareSerial.cpp b/libraries/SoftwareSerial/src/SoftwareSerial.cpp index d9ad70e323..9eec770a6a 100644 --- a/libraries/SoftwareSerial/src/SoftwareSerial.cpp +++ b/libraries/SoftwareSerial/src/SoftwareSerial.cpp @@ -157,6 +157,8 @@ bool SoftwareSerial::listen() active_listener = this; if (!_half_duplex) { active_in = this; + } else if (!active_out) { + setRXTX(true); } return true; }