access array
This commit is contained in:
parent
877a7753d1
commit
4b956fdff0
1 changed files with 5 additions and 3 deletions
|
@ -97,10 +97,12 @@ function tick_pattern() {
|
|||
// do the parsing stuff here
|
||||
log.debug("TICKING PATTERN")
|
||||
|
||||
if (pattern.length > 0) {
|
||||
let parsed = pattern.parsed;
|
||||
|
||||
if (parsed.length > 0) {
|
||||
for (let i = 0; i < cfg.leds; i++) {
|
||||
for (let id in pattern) {
|
||||
let command = pattern[id];
|
||||
for (let id in parsed) {
|
||||
let command = parsed[id];
|
||||
log.info(`pattern ${id} ${command}`);
|
||||
let name = command["command"];
|
||||
log.info(`${name} matches: ${functions[name]}`);
|
||||
|
|
Loading…
Reference in a new issue