Fix compile error

This commit is contained in:
mxklb 2023-11-09 00:49:41 +01:00
parent 29e6ccdcdb
commit 84457b7334
2 changed files with 5 additions and 4 deletions

View File

@ -11,7 +11,7 @@
# CI binaries # 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 # 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 # Release binaries
; default_envs = nodemcuv2, esp8266_2m, esp01_1m_full, esp32dev, esp32_eth, lolin_s2_mini, esp32c3dev, esp32s3dev_8MB ; 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 = h803wf
; default_envs = d1_mini_debug ; default_envs = d1_mini_debug
; default_envs = d1_mini_ota ; default_envs = d1_mini_ota
; default_envs = esp32dev default_envs = esp32dev
; default_envs = esp8285_4CH_MagicHome ; default_envs = esp8285_4CH_MagicHome
; default_envs = esp8285_H801 ; default_envs = esp8285_H801
; default_envs = d1_mini_5CH_Shojo_PCB ; default_envs = d1_mini_5CH_Shojo_PCB

View File

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