Skip to content

Commit

Permalink
bugfix for random crash when changing effects
Browse files Browse the repository at this point in the history
  • Loading branch information
softhack007 committed Nov 1, 2024
1 parent 6092705 commit 85035e5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion wled00/FX_fcn.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2284,7 +2284,7 @@ void WS2812FX::setSegment(uint8_t n, uint16_t i1, uint16_t i2, uint8_t grouping,
void WS2812FX::restartRuntime(bool doReset) {
for (segment &seg : _segments) {
if (doReset) { // WLEDMM we prefer not to perform a complete restart of all effects
seg.markForReset(); seg.resetIfRequired();
seg.markForReset(); // seg.resetIfRequired(); // WLEDMM calling this function from webserver context will cause troubles
} else {
seg.next_time = 0; seg.step = 0;
}
Expand Down

0 comments on commit 85035e5

Please sign in to comment.