Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion wled00/wled.h
Original file line number Diff line number Diff line change
Expand Up @@ -739,7 +739,11 @@ WLED_GLOBAL bool notifyHue _INIT(true); // send notifi
#endif

// effects
WLED_GLOBAL byte effectCurrent _INIT(0);
#ifndef DEFAULT_LED_EFFECT
#define DEFAULT_LED_EFFECT 0
#endif
static_assert(DEFAULT_LED_EFFECT >= 0 && DEFAULT_LED_EFFECT < MODE_COUNT, "DEFAULT_LED_EFFECT must be between 0 and MODE_COUNT-1");
WLED_GLOBAL byte effectCurrent _INIT(DEFAULT_LED_EFFECT);
WLED_GLOBAL byte effectSpeed _INIT(128);
WLED_GLOBAL byte effectIntensity _INIT(128);
WLED_GLOBAL byte effectPalette _INIT(0);
Expand Down