mirror of
https://github.com/wled/WLED.git
synced 2025-07-17 07:46:32 +00:00
Fix random palette transitions.
This commit is contained in:
parent
97503897f0
commit
7b87475af8
@ -1142,7 +1142,7 @@ void WS2812FX::service() {
|
|||||||
|
|
||||||
_isServicing = true;
|
_isServicing = true;
|
||||||
_segment_index = 0;
|
_segment_index = 0;
|
||||||
Segment::handleRandomPalette(); // move it into for loop when each segment has individual random palette
|
|
||||||
for (segment &seg : _segments) {
|
for (segment &seg : _segments) {
|
||||||
if (_suspend) return; // immediately stop processing segments if suspend requested during service()
|
if (_suspend) return; // immediately stop processing segments if suspend requested during service()
|
||||||
|
|
||||||
@ -1205,6 +1205,7 @@ void WS2812FX::service() {
|
|||||||
#endif
|
#endif
|
||||||
if (doShow) {
|
if (doShow) {
|
||||||
yield();
|
yield();
|
||||||
|
Segment::handleRandomPalette(); // slowly transtion random palette; move it into for loop when each segment has individual random palette
|
||||||
show();
|
show();
|
||||||
}
|
}
|
||||||
#ifdef WLED_DEBUG
|
#ifdef WLED_DEBUG
|
||||||
|
Loading…
x
Reference in New Issue
Block a user