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
|
// do the parsing stuff here
|
||||||
log.debug("TICKING PATTERN")
|
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 i = 0; i < cfg.leds; i++) {
|
||||||
for (let id in pattern) {
|
for (let id in parsed) {
|
||||||
let command = pattern[id];
|
let command = parsed[id];
|
||||||
log.info(`pattern ${id} ${command}`);
|
log.info(`pattern ${id} ${command}`);
|
||||||
let name = command["command"];
|
let name = command["command"];
|
||||||
log.info(`${name} matches: ${functions[name]}`);
|
log.info(`${name} matches: ${functions[name]}`);
|
||||||
|
|
Loading…
Reference in a new issue