From 530b2636a4505fb244e5a385927c6a03079c11ad Mon Sep 17 00:00:00 2001 From: me-no-dev Date: Mon, 19 Aug 2024 12:05:29 +0300 Subject: [PATCH] Remove const to allow changing the order --- cores/esp32/esp32-hal-rgb-led.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cores/esp32/esp32-hal-rgb-led.c b/cores/esp32/esp32-hal-rgb-led.c index e23e2453cdf..5afec10f89b 100644 --- a/cores/esp32/esp32-hal-rgb-led.c +++ b/cores/esp32/esp32-hal-rgb-led.c @@ -34,7 +34,7 @@ void rgbLedWriteOrdered(uint8_t pin, rgb_led_color_order_t order, uint8_t red_va } // default WS2812B color order is G, R, B - const int color[3] = {green_val, red_val, blue_val}; + int color[3] = {green_val, red_val, blue_val}; switch (order) { case LED_COLOR_ORDER_RGB: