From ba75e0c5ef18d280ccb1e33b5f061f847313e249 Mon Sep 17 00:00:00 2001 From: Sebastian Romero Date: Mon, 17 Jun 2024 17:16:46 +0200 Subject: [PATCH] Fix incorrect behaviour of brightness --- libraries/ezWS2812/src/ezWS2812.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/libraries/ezWS2812/src/ezWS2812.h b/libraries/ezWS2812/src/ezWS2812.h index 4691f4d..855cfc6 100644 --- a/libraries/ezWS2812/src/ezWS2812.h +++ b/libraries/ezWS2812/src/ezWS2812.h @@ -63,9 +63,9 @@ class ezWS2812 { colors[c] = (uint8_t)color_adj; } } else if (brightness == 0) { - red = 0; - green = 0; - blue = 0; + colors[0] = 0; + colors[1] = 0; + colors[2] = 0; } // Go through the output array