From 5fa901c37c4e20b7d563197261f12dadfc49b5ef Mon Sep 17 00:00:00 2001 From: Will Miles Date: Wed, 27 Aug 2025 22:28:24 -0400 Subject: [PATCH] Fix operation of length 1 strips, such as PWM LEDs This reverts commit e5ba97bbe2e077438b5a93ee16406b81f4a8ab75. --- wled00/FX_fcn.cpp | 5 ----- 1 file changed, 5 deletions(-) diff --git a/wled00/FX_fcn.cpp b/wled00/FX_fcn.cpp index 72eb6ac00..4fad8baac 100644 --- a/wled00/FX_fcn.cpp +++ b/wled00/FX_fcn.cpp @@ -1340,11 +1340,6 @@ void WS2812FX::blendSegment(const Segment &topSegment) const { uint8_t opacity = topSegment.currentBri(); // returns transitioned opacity for style FADE uint8_t cct = topSegment.currentCCT(); - if (length == 1) { - // Can't blend only a single pixel, prevents crash when bus init fails - return; - } - Segment::setClippingRect(0, 0); // disable clipping by default const unsigned dw = (blendingStyle==BLEND_STYLE_OUTSIDE_IN ? progInv : progress) * width / 0xFFFFU + 1;