use bracket syntax
This commit is contained in:
parent
fb402d3709
commit
595b9916c7
1 changed files with 1 additions and 1 deletions
|
@ -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"]) {
|
||||||
|
|
Loading…
Reference in a new issue