diff --git a/lights.js b/lights.js index 9f37dfd..bf5ba0b 100644 --- a/lights.js +++ b/lights.js @@ -23,7 +23,7 @@ function tick_pattern() { var g = Math.floor(Math.random() * 100); var b = Math.floor(Math.random() * 100); - for (int i = 0; i < global.cfg.leds; i++) { + for (let i = 0; i < global.cfg.leds; i++) { if (i % 3 == 0) { next_pattern[i] = r; next_pattern[i + 1] = g; @@ -34,7 +34,7 @@ function tick_pattern() { export function tick() { var changed = false; - for (int i = 0; i < global.cfg.leds; i++) { + for (let i = 0; i < global.cfg.leds; i++) { if (next_pattern[i] != pixels[i]) { changed = true; fade(i);