Skip to content

Commit

Permalink
fixed include, bugfix in random palette handling
Browse files Browse the repository at this point in the history
  • Loading branch information
DedeHai committed Jan 27, 2024
1 parent affbc17 commit 7089250
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion wled00/FX_fcn.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 0 additions & 1 deletion wled00/fcn_declare.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
#ifndef WLED_FCN_DECLARE_H
#define WLED_FCN_DECLARE_H

#include "FastLED.h"
/*
* All globally accessible functions are declared here
*/
Expand Down
1 change: 1 addition & 0 deletions wled00/wled.h
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,7 @@ using PSRAMDynamicJsonDocument = BasicJsonDocument<PSRAM_Allocator>;
#define PSRAMDynamicJsonDocument DynamicJsonDocument
#endif

#include "FastLED.h"
#include "const.h"
#include "fcn_declare.h"
#include "NodeStruct.h"
Expand Down

0 comments on commit 7089250

Please sign in to comment.