From 41aceae3406e45478606659595809ba2d7174994 Mon Sep 17 00:00:00 2001 From: Kuba Orlik Date: Sat, 30 Dec 2023 14:07:46 +0100 Subject: [PATCH] Fix bug --- light-loop.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/light-loop.js b/light-loop.js index b33ca6a..9a9fefc 100644 --- a/light-loop.js +++ b/light-loop.js @@ -47,7 +47,7 @@ module.exports = async function light_loop(light_index, max_brightness, debug) { const current_color = latest_color.get().slice(from, to); let is_changed = false; for (i in last_color) { - if (last_color[i] != current_color[i]) { + if (last_color.get()[i] != current_color[i]) { is_changed = true; break; }