From 29e6ccdcdb58b9258f98c138105db0d3466b5e93 Mon Sep 17 00:00:00 2001 From: mxklb Date: Thu, 9 Nov 2023 00:24:17 +0100 Subject: [PATCH] Fix compile error --- wled00/e131.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wled00/e131.cpp b/wled00/e131.cpp index 12acc2c9..2607cc0f 100644 --- a/wled00/e131.cpp +++ b/wled00/e131.cpp @@ -144,7 +144,7 @@ void handleE131Packet(e131_packet_t* p, IPAddress clientIP, byte protocol){ case DMX_MODE_SINGLE_RGB: // 3-4 channels: [R,G,B] + W (if present) if (uni != e131Universe) return; - const uint16_t dmxChannelCount = strip.hasWhiteChannel() ? 4 : 3; + uint16_t dmxChannelCount = strip.hasWhiteChannel() ? 4 : 3; if (availDMXLen < dmxChannelCount) return; realtimeLock(realtimeTimeoutMs, mde); @@ -157,7 +157,7 @@ void handleE131Packet(e131_packet_t* p, IPAddress clientIP, byte protocol){ case DMX_MODE_SINGLE_DRGB: // 4-5 channels: [Dimmer,R,G,B] + W (if present) if (uni != e131Universe) return; - const uint16_t dmxChannelCount = strip.hasWhiteChannel() ? 5 : 4; + uint16_t dmxChannelCount = strip.hasWhiteChannel() ? 5 : 4; if (availDMXLen < dmxChannelCount) return; realtimeLock(realtimeTimeoutMs, mde);