i also forgot types don't exist

This commit is contained in:
jane 2021-05-25 23:19:44 -04:00
parent 8bc85d7385
commit da801346a1

View file

@ -23,7 +23,7 @@ function tick_pattern() {
var g = Math.floor(Math.random() * 100); var g = Math.floor(Math.random() * 100);
var b = 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) { if (i % 3 == 0) {
next_pattern[i] = r; next_pattern[i] = r;
next_pattern[i + 1] = g; next_pattern[i + 1] = g;
@ -34,7 +34,7 @@ function tick_pattern() {
export function tick() { export function tick() {
var changed = false; 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]) { if (next_pattern[i] != pixels[i]) {
changed = true; changed = true;
fade(i); fade(i);