diff --git a/wled00/e131.cpp b/wled00/e131.cpp index abf6f861..f54ba99a 100644 --- a/wled00/e131.cpp +++ b/wled00/e131.cpp @@ -174,8 +174,8 @@ void handleE131Packet(e131_packet_t* p, IPAddress clientIP, byte protocol){ case DMX_MODE_EFFECT: // 15 channels [bri,effectCurrent,effectSpeed,effectIntensity,effectPalette,effectOption,R,G,B,R2,G2,B2,R3,G3,B3] case DMX_MODE_EFFECT_W: // 18 channels, same as above but with extra +3 white channels [..,W,W2,W3] - case DMX_MODE_EFFECT_SEGMENT: // 15 channels per segment; max[#] = floor[512/(11+DMXSegmentSpacing)] = 46,42,39, .. - case DMX_MODE_EFFECT_SEGMENT_W: // 18 Channels per segment; max[#] = floor[512/(13+DMXSegmentSpacing)] = 39,36,34,32, .. + case DMX_MODE_EFFECT_SEGMENT: // 15 channels per segment; max[#] = floor[512/(11+DMXSegmentSpacing)] + case DMX_MODE_EFFECT_SEGMENT_W: // 18 Channels per segment; max[#] = floor[512/(13+DMXSegmentSpacing)] { if (uni != e131Universe) return; bool isSegmentMode = DMXMode == DMX_MODE_EFFECT_SEGMENT || DMXMode == DMX_MODE_EFFECT_SEGMENT_W; diff --git a/wled00/wled.h b/wled00/wled.h index c8625e76..33c8e91e 100644 --- a/wled00/wled.h +++ b/wled00/wled.h @@ -510,7 +510,6 @@ WLED_GLOBAL byte briOld _INIT(0); // global brightnes w WLED_GLOBAL byte briT _INIT(0); // global brightness during transition WLED_GLOBAL byte briLast _INIT(128); // brightness before turned off. Used for toggle function WLED_GLOBAL byte whiteLast _INIT(128); // white channel before turned off. Used for toggle function -WLED_GLOBAL byte opacity _INIT(128); // global segment opacity (set) // button WLED_GLOBAL bool buttonPublishMqtt _INIT(false);