Skip to content

Commit

Permalink
Fix random palette transitions.
Browse files Browse the repository at this point in the history
  • Loading branch information
blazoncek committed Jan 29, 2024
1 parent 9750389 commit 7b87475
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion wled00/FX_fcn.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1142,7 +1142,7 @@ void WS2812FX::service() {

_isServicing = true;
_segment_index = 0;
Segment::handleRandomPalette(); // move it into for loop when each segment has individual random palette

for (segment &seg : _segments) {
if (_suspend) return; // immediately stop processing segments if suspend requested during service()

Expand Down Expand Up @@ -1205,6 +1205,7 @@ void WS2812FX::service() {
#endif
if (doShow) {
yield();
Segment::handleRandomPalette(); // slowly transtion random palette; move it into for loop when each segment has individual random palette
show();
}
#ifdef WLED_DEBUG
Expand Down

0 comments on commit 7b87475

Please sign in to comment.