fixed include, bugfix in random palette handling

This commit is contained in:
Damian Schneider
2024-01-27 20:36:59 +01:00
parent a9bcc75733
commit bccc97d25f
3 changed files with 2 additions and 2 deletions

View File

@@ -223,7 +223,7 @@ CRGBPalette16 IRAM_ATTR &Segment::loadPalette(CRGBPalette16 &targetPalette, uint
case 1: {//periodically replace palette with a random one
unsigned long timeSinceLastChange = millis() - _lastPaletteChange;
if (timeSinceLastChange > randomPaletteChangeTime * 1000U) {
_randomPalette = _newRandomPalette;
//_randomPalette = _newRandomPalette;
_newRandomPalette = generateRandomPalette(&_randomPalette);
_lastPaletteChange = millis();
handleRandomPalette(); // do a 1st pass of blend