add logging to lights interp

This commit is contained in:
jane 2021-06-04 22:16:00 -04:00
parent 85856da29b
commit d303d03d87

View file

@ -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];