Increase 0.13 backwards compatibility
global LED buffer default true (0.13 backward compatibility) Restore effects back to 0.13 ( - mode_wavesins - mode_2DLissajous (uses segment setUpLeds) - mode_2Dsquaredswirl (custom3<<3) - mode_2DAkemi (uses segment setUpLeds) setSegment implements setUpLeds if globalleds
This commit is contained in:
@@ -1591,6 +1591,7 @@ void WS2812FX::setSegment(uint8_t n, uint16_t i1, uint16_t i2, uint8_t grouping,
|
||||
seg.stop = i2 > matrixWidth ? matrixWidth : i2;
|
||||
if (startY < matrixHeight) seg.startY = startY;
|
||||
seg.stopY = stopY > matrixHeight ? matrixHeight : MAX(1,stopY);
|
||||
if (Segment::_globalLeds) seg.setUpLeds(); //WLEDMM force all effects to use globalleds
|
||||
#endif
|
||||
} else {
|
||||
if (i1 < _length) seg.start = i1;
|
||||
|
||||
Reference in New Issue
Block a user