Skip to content

Commit 4a24f20

Browse files
committed
fix softwareserial bug of listen
1 parent 1aad4c2 commit 4a24f20

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/Adapters/BlinkerSerial.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,11 @@ class BlinkerTransportStream
1515

1616
bool available()
1717
{
18+
if (!SerialBLE->isListening()) {
19+
SerialBLE->listen();
20+
::delay(100);
21+
}
22+
1823
if (stream->available()) {
1924
strcpy(streamData, (stream->readString()).c_str());
2025
#ifdef BLINKER_DEBUG_ALL

0 commit comments

Comments
 (0)