Skip to content

Commit 9ff665b

Browse files
committed
another unprotected Serial real
1 parent 15199dc commit 9ff665b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

wled00/improv.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ void handleImprovPacket() {
5050
uint8_t rpcCommandType = 0;
5151
char rpcData[128];
5252
rpcData[0] = 0;
53+
if (!Serial) return; // WLEDMM avoid reading from unconnected USB-CDC
5354

5455
while (!timeout) {
5556
if (Serial.available() < 1) {

0 commit comments

Comments
 (0)