Fix for #5206
This commit is contained in:
@@ -1572,10 +1572,11 @@ void WS2812FX::blendSegment(const Segment &topSegment) const {
|
||||
// we need to blend old segment using fade as pixels are not clipped
|
||||
c_a = color_blend16(c_a, segO->getPixelColorRaw(i), progInv);
|
||||
} else if (blendingStyle != BLEND_STYLE_FADE) {
|
||||
// if we have global brightness change (not On/Off change) we will ignore transition style and just fade brightness (see led.cpp)
|
||||
// workaround for On/Off transition
|
||||
// (bri != briT) && !bri => from On to Off
|
||||
// (bri != briT) && bri => from Off to On
|
||||
if ((!clipped && (bri != briT) && !bri) || (clipped && (bri != briT) && bri)) c_a = BLACK;
|
||||
if ((briOld == 0 || bri == 0) && ((!clipped && (bri != briT) && !bri) || (clipped && (bri != briT) && bri))) c_a = BLACK;
|
||||
}
|
||||
// map into frame buffer
|
||||
i = k; // restore index if we were PUSHing
|
||||
|
||||
Reference in New Issue
Block a user