Skip to content

Commit 2991308

Browse files
committed
Don't listen in begin() for half-duplex
1 parent 3b0bbac commit 2991308

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

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

+1-2
Original file line numberDiff line numberDiff line change
@@ -348,11 +348,10 @@ void SoftwareSerial::begin(long speed)
348348
if (!_half_duplex) {
349349
setTX();
350350
setRX();
351+
listen();
351352
} else {
352353
setTX();
353354
}
354-
355-
listen();
356355
}
357356

358357
void SoftwareSerial::end()

0 commit comments

Comments
 (0)