workaround for issue #3128

This commit is contained in:
Frank
2023-03-16 13:08:34 +01:00
parent d1fed11d0d
commit cded92662f
3 changed files with 5 additions and 1 deletions

View File

@@ -70,6 +70,7 @@ void sendBytes(){
void handleSerial()
{
if (pinManager.isPinAllocated(hardwareRX)) return;
if (!Serial) return; // arduino docs: `if (Serial)` indicates whether or not the USB CDC serial connection is open. For all non-USB CDC ports, this will always return true
#ifdef WLED_ENABLE_ADALIGHT
static auto state = AdaState::Header_A;