We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b79e81f commit e5ba97bCopy full SHA for e5ba97b
wled00/FX_fcn.cpp
@@ -1344,6 +1344,11 @@ void WS2812FX::blendSegment(const Segment &topSegment) const {
1344
uint8_t opacity = topSegment.currentBri(); // returns transitioned opacity for style FADE
1345
uint8_t cct = topSegment.currentCCT();
1346
1347
+ if (length == 1) {
1348
+ // Can't blend only a single pixel, prevents crash when bus init fails
1349
+ return;
1350
+ }
1351
+
1352
Segment::setClippingRect(0, 0); // disable clipping by default
1353
1354
const unsigned dw = (blendingStyle==BLEND_STYLE_OUTSIDE_IN ? progInv : progress) * width / 0xFFFFU + 1;
0 commit comments