Bugfix: incorrect maxWidth after switching from 2D
This commit is contained in:
parent
b436a660f1
commit
474e86306f
@ -41,6 +41,11 @@ void WS2812FX::setUpMatrix() {
|
|||||||
customMappingTable = nullptr;
|
customMappingTable = nullptr;
|
||||||
customMappingSize = 0;
|
customMappingSize = 0;
|
||||||
|
|
||||||
|
// important if called from set.cpp, irrelevant if called from cfg.cpp
|
||||||
|
// fix limits if not a matrix set-up (no finalizeInit() called from set.cpp)
|
||||||
|
Segment::maxWidth = _length;
|
||||||
|
Segment::maxHeight = 1;
|
||||||
|
|
||||||
// isMatrix is set in cfg.cpp or set.cpp
|
// isMatrix is set in cfg.cpp or set.cpp
|
||||||
if (isMatrix) {
|
if (isMatrix) {
|
||||||
uint16_t maxWidth = hPanels * panelW;
|
uint16_t maxWidth = hPanels * panelW;
|
||||||
|
Loading…
Reference in New Issue
Block a user