Skip to content

Commit 9810338

Browse files
committed
fix SoftwareSerial SerialBLE bug
1 parent f5b020c commit 9810338

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Adapters/BlinkerSerial.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ class BlinkerTransportStream
2525
}
2626

2727
if (stream->available()) {
28-
strcpy(streamData, (stream->readString()).c_str());
28+
strcpy(streamData, (stream->readStringUntil('\n')).c_str());
2929
#ifdef BLINKER_DEBUG_ALL
3030
BLINKER_LOG2(BLINKER_F("handleSerial: "), streamData);
3131
#endif

0 commit comments

Comments
 (0)