Skip to content

Commit

Permalink
init effect twice - workaround / temporary
Browse files Browse the repository at this point in the history
  • Loading branch information
ewowi committed Jan 17, 2025
1 parent 39cfb2d commit 9fb54f8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/App/LedModEffects.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -531,7 +531,9 @@ inline uint16_t getRGBWsize(uint16_t nleds){

//process effect change initiated outside library (ESK)
if (processEffectNr != UINT16_MAX) {
Variable("layers","effect").setValue(processEffectNr, 0);
Variable variable = Variable("layers","effect");
variable.setValue(processEffectNr, 0);
variable.setValue(processEffectNr, 0); //twice to init var["value"]correctly - workaround !!!
processEffectNr = UINT16_MAX;
}

Expand Down

0 comments on commit 9fb54f8

Please sign in to comment.