Skip to content

Commit

Permalink
Post merge
Browse files Browse the repository at this point in the history
  • Loading branch information
ewoudwijma committed Aug 19, 2024
1 parent 774af02 commit 2bb762b
Show file tree
Hide file tree
Showing 3 changed files with 606 additions and 1,138 deletions.
3 changes: 3 additions & 0 deletions data/newui/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ class Controller {
}
}
else if (buffer[0] == 1) {
//LEDs specific
let canvasNode = document.getElementById("pview");
if (canvasNode) {
// console.log(buffer, canvasNode);
Expand All @@ -99,6 +100,8 @@ class Controller {
userFun(buffer);
}
}
//end LEDs specific

}
}, 100);

Expand Down
2 changes: 1 addition & 1 deletion src/App/LedEffects.h
Original file line number Diff line number Diff line change
Expand Up @@ -2893,8 +2893,8 @@ class LiveScriptEffect: public Effect {
//set script
uint8_t fileNr = var["value"][rowNr];

gLeds = &leds; //LEDs specific set the leds class for live script
if (fileNr > 0) { //not None and live setup done (before )
gLeds = &leds; //set the leds class for live script

fileNr--; //-1 as none is no file
files->seqNrToName(web->lastFileUpdated, fileNr, ".sc");
Expand Down
Loading

0 comments on commit 2bb762b

Please sign in to comment.