diff --git a/platformio.ini b/platformio.ini index fa6bf3bb..be66be95 100644 --- a/platformio.ini +++ b/platformio.ini @@ -11,7 +11,7 @@ # CI binaries ; default_envs = nodemcuv2, esp8266_2m, esp01_1m_full, esp32dev, esp32_eth # ESP32 variant builds are temporarily excluded from CI due to toolchain issues on the GitHub Actions Linux environment -default_envs = nodemcuv2, esp8266_2m, esp01_1m_full, esp32dev, esp32_eth, esp32dev_audioreactive, lolin_s2_mini, esp32c3dev, esp32s3dev_8MB, esp32s3dev_8MB_PSRAM_opi +;default_envs = nodemcuv2, esp8266_2m, esp01_1m_full, esp32dev, esp32_eth, esp32dev_audioreactive, lolin_s2_mini, esp32c3dev, esp32s3dev_8MB, esp32s3dev_8MB_PSRAM_opi # Release binaries ; default_envs = nodemcuv2, esp8266_2m, esp01_1m_full, esp32dev, esp32_eth, lolin_s2_mini, esp32c3dev, esp32s3dev_8MB @@ -30,7 +30,7 @@ default_envs = nodemcuv2, esp8266_2m, esp01_1m_full, esp32dev, esp32_eth, esp32d ; default_envs = h803wf ; default_envs = d1_mini_debug ; default_envs = d1_mini_ota -; default_envs = esp32dev +default_envs = esp32dev ; default_envs = esp8285_4CH_MagicHome ; default_envs = esp8285_H801 ; default_envs = d1_mini_5CH_Shojo_PCB diff --git a/wled00/e131.cpp b/wled00/e131.cpp index 2607cc0f..86ef7c8b 100644 --- a/wled00/e131.cpp +++ b/wled00/e131.cpp @@ -144,7 +144,8 @@ 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; - uint16_t dmxChannelCount = strip.hasWhiteChannel() ? 4 : 3; + uint16_t dmxChannelCount; + dmxChannelCount = strip.hasWhiteChannel() ? 4 : 3; if (availDMXLen < dmxChannelCount) return; realtimeLock(realtimeTimeoutMs, mde); @@ -157,7 +158,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; - uint16_t dmxChannelCount = strip.hasWhiteChannel() ? 5 : 4; + dmxChannelCount = strip.hasWhiteChannel() ? 5 : 4; if (availDMXLen < dmxChannelCount) return; realtimeLock(realtimeTimeoutMs, mde);