From 343df4cba5fc0e98b1da6cd976d3b9f735e3a62c Mon Sep 17 00:00:00 2001 From: Jane Petrovna Date: Wed, 26 May 2021 12:16:33 -0400 Subject: [PATCH] oh my god i fucked up the rgb_to_int thats why it doesnt work --- lights.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lights.js b/lights.js index 5336025..fe19ecc 100644 --- a/lights.js +++ b/lights.js @@ -10,7 +10,7 @@ var next_pattern = new Uint32Array(cfg.leds); var pattern = {} function rgb_to_int(r, g, b) { - return ((r << 8) + g) << 8 + b; + return (((r << 8) + g) << 8) + b; } function int_to_rgb(int) { var r = int >> 16 & 0xFF;