add logging to lights interp
This commit is contained in:
parent
85856da29b
commit
d303d03d87
1 changed files with 2 additions and 1 deletions
|
@ -101,7 +101,8 @@ function tick_pattern() {
|
||||||
for (let i = 0; i < cfg.leds; i++) {
|
for (let i = 0; i < cfg.leds; i++) {
|
||||||
for (let command of pattern) {
|
for (let command of pattern) {
|
||||||
let name = command.command;
|
let name = command.command;
|
||||||
if (functions[name]) {
|
log.info(`${name} matches: ${functions[name]}`);
|
||||||
|
if (functions[name] != undefined) {
|
||||||
if (functions[name].options && functions[name].options["convert_args"]) {
|
if (functions[name].options && functions[name].options["convert_args"]) {
|
||||||
let param_arg1 = parseInt(command.arg1) || targets[command.arg1];
|
let param_arg1 = parseInt(command.arg1) || targets[command.arg1];
|
||||||
let param_arg2 = parseInt(command.arg2) || targets[command.arg2];
|
let param_arg2 = parseInt(command.arg2) || targets[command.arg2];
|
||||||
|
|
Loading…
Reference in a new issue