From 7ec822a1166328eb151468e5c531a5166415d722 Mon Sep 17 00:00:00 2001 From: Jane Petrovna Date: Wed, 26 May 2021 12:11:41 -0400 Subject: [PATCH] tasr --- lights.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lights.js b/lights.js index bd6cf67..450cf38 100644 --- a/lights.js +++ b/lights.js @@ -55,9 +55,9 @@ export function tick() { fade(i); } } - else if (pixel_cache[i] != next_pattern[i]) { + else if (pixel_cache[i] != pixels[i]) { console.log("PATTERN NOT STORED " + i); - pixel_cache[i] = next_pattern[i]; + pixel_cache[i] = pixels[i]; } } if (!changed) {