From 9ff665b788ec55dd5a28ac628cab90b8980d2424 Mon Sep 17 00:00:00 2001 From: Frank <91616163+softhack007@users.noreply.github.com> Date: Wed, 29 May 2024 15:51:44 +0200 Subject: [PATCH] another unprotected Serial real --- wled00/improv.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/wled00/improv.cpp b/wled00/improv.cpp index 646201d3..eef8ad82 100644 --- a/wled00/improv.cpp +++ b/wled00/improv.cpp @@ -50,6 +50,7 @@ void handleImprovPacket() { uint8_t rpcCommandType = 0; char rpcData[128]; rpcData[0] = 0; + if (!Serial) return; // WLEDMM avoid reading from unconnected USB-CDC while (!timeout) { if (Serial.available() < 1) {