Skip to content

Commit

Permalink
matrixWidth integerDivisionByZero bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
ewoudwijma committed Dec 31, 2021
1 parent 402c85f commit 54afbaf
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions wled00/FX_fcn.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -87,8 +87,6 @@ void WS2812FX::finalizeInit(void)
}
}

set2DSegment(0); // ewowi20210629: initialize 2D segment variables

_length = 0;
for (uint8_t i=0; i<busses.getNumBusses(); i++) {
Bus *bus = busses.getBus(i);
Expand All @@ -109,6 +107,9 @@ void WS2812FX::finalizeInit(void)
#endif
}

setStripOrPanelWidthAndHeight();
set2DSegment(0); // ewowi20210629: initialize 2D segment variables

//segments are created in makeAutoSegments();

setBrightness(_brightness);
Expand Down

0 comments on commit 54afbaf

Please sign in to comment.