Skip to content

Commit 20009c3

Browse files
committed
WLED_DISABLE_ADALIGHT doesn't kill serial anymore.
1 parent 4df9553 commit 20009c3

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

wled00/wled_serial.cpp

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,6 @@ void handleSerial()
9797
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
9898
if (((pinManager.isPinAllocated(hardwareTX)) && (pinManager.getPinOwner(hardwareTX) != PinOwner::DebugOut))) return; // WLEDMM serial TX is necessary for adalight / TPM2
9999

100-
#ifdef WLED_ENABLE_ADALIGHT
101100
static auto state = AdaState::Header_A;
102101
static uint16_t count = 0;
103102
static uint16_t pixel = 0;
@@ -326,9 +325,6 @@ void handleSerial()
326325
//#ifdef WLED_DEBUG
327326
if ((millis() - startTime) > SERIAL_MAXTIME_MILLIS) { USER_PRINTLN(F("handleSerial(): need a break after >100ms of activity.")); }
328327
//#endif
329-
#else
330-
#pragma message "Serial protocols (AdaLight, Serial JSON, Serial LED driver, improv) disabled"
331-
#endif
332328

333329
// If Continuous Serial Streaming is enabled, send new LED data as bytes
334330
if (continuousSendLED && (lastUpdate != strip.getLastShow())){

0 commit comments

Comments
 (0)