add logging to lights interp

This commit is contained in:
jane 2021-06-04 22:16:00 -04:00
parent 85856da29b
commit d303d03d87
1 changed files with 2 additions and 1 deletions

View File

@ -101,7 +101,8 @@ function tick_pattern() {
for (let i = 0; i < cfg.leds; i++) {
for (let command of pattern) {
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"]) {
let param_arg1 = parseInt(command.arg1) || targets[command.arg1];
let param_arg2 = parseInt(command.arg2) || targets[command.arg2];