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) {