use bracket syntax

This commit is contained in:
jane 2021-06-04 22:17:52 -04:00
parent fb402d3709
commit 595b9916c7

View file

@ -100,7 +100,7 @@ function tick_pattern() {
if (pattern.length > 0) { if (pattern.length > 0) {
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"];
log.info(`${name} matches: ${functions[name]}`); log.info(`${name} matches: ${functions[name]}`);
if (functions[name] != undefined) { if (functions[name] != undefined) {
if (functions[name].options && functions[name].options["convert_args"]) { if (functions[name].options && functions[name].options["convert_args"]) {