Fix compile error

This commit is contained in:
mxklb 2023-11-09 00:24:17 +01:00
parent 376a83fc31
commit 29e6ccdcdb

View File

@ -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) case DMX_MODE_SINGLE_RGB: // 3-4 channels: [R,G,B] + W (if present)
if (uni != e131Universe) return; if (uni != e131Universe) return;
const uint16_t dmxChannelCount = strip.hasWhiteChannel() ? 4 : 3; uint16_t dmxChannelCount = strip.hasWhiteChannel() ? 4 : 3;
if (availDMXLen < dmxChannelCount) return; if (availDMXLen < dmxChannelCount) return;
realtimeLock(realtimeTimeoutMs, mde); 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) case DMX_MODE_SINGLE_DRGB: // 4-5 channels: [Dimmer,R,G,B] + W (if present)
if (uni != e131Universe) return; if (uni != e131Universe) return;
const uint16_t dmxChannelCount = strip.hasWhiteChannel() ? 5 : 4; uint16_t dmxChannelCount = strip.hasWhiteChannel() ? 5 : 4;
if (availDMXLen < dmxChannelCount) return; if (availDMXLen < dmxChannelCount) return;
realtimeLock(realtimeTimeoutMs, mde); realtimeLock(realtimeTimeoutMs, mde);