From 785622b46c22b7c104cedd56b6394e67a0bcaf30 Mon Sep 17 00:00:00 2001 From: Kuba Orlik Date: Fri, 5 Jan 2024 15:53:33 +0100 Subject: [PATCH] Format --- light-loop.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/light-loop.js b/light-loop.js index 7cc5be1..a39db3d 100644 --- a/light-loop.js +++ b/light-loop.js @@ -42,14 +42,13 @@ async function send_color(light_data, color, max_brightness, debug) { } module.exports = async function light_loop(light_index, max_brightness, debug) { - light_index = parseInt(light_index) + light_index = parseInt(light_index); let last_time = 0; let last_color = [0, 0, 0]; while (true) { last_time = Date.now(); const from = 3 * light_index; - const to = 3 * (light_index + 1); - conso + const to = 3 * (light_index + 1); const current_color = latest_color.get().slice(from, to); let is_changed = false; for (i in last_color) {