mirror of
https://github.com/wled/WLED.git
synced 2025-04-23 22:37:18 +00:00
bugfix, need to initialize the random palette to something useful
This commit is contained in:
parent
bccc97d25f
commit
12e2116acb
@ -77,7 +77,7 @@ uint16_t Segment::_usedSegmentData = 0U; // amount of RAM all segments use for t
|
||||
uint16_t Segment::maxWidth = DEFAULT_LED_COUNT;
|
||||
uint16_t Segment::maxHeight = 1;
|
||||
|
||||
CRGBPalette16 Segment::_randomPalette = CRGBPalette16(DEFAULT_COLOR);
|
||||
CRGBPalette16 Segment::_randomPalette = generateRandomPalette(&_randomPalette);
|
||||
CRGBPalette16 Segment::_newRandomPalette = CRGBPalette16(DEFAULT_COLOR);
|
||||
unsigned long Segment::_lastPaletteChange = 0; // perhaps it should be per segment
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user