add more logging
This commit is contained in:
parent
595b9916c7
commit
877a7753d1
1 changed files with 3 additions and 1 deletions
|
@ -99,7 +99,9 @@ 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 id in pattern) {
|
||||||
|
let command = pattern[id];
|
||||||
|
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]}`);
|
||||||
if (functions[name] != undefined) {
|
if (functions[name] != undefined) {
|
||||||
|
|
Loading…
Reference in a new issue