diff --git a/wled00/WS2812FX.h b/wled00/WS2812FX.h index 19c6a7f9..cffae9c8 100644 --- a/wled00/WS2812FX.h +++ b/wled00/WS2812FX.h @@ -210,6 +210,8 @@ class WS2812FX : public NeoPixelBrightnessBus 1) { if (udpIn[1] == 0) @@ -97,11 +97,12 @@ void handleNotifications() if (udpIn[i] + arlsOffset < ledcount && udpIn[i] + arlsOffset >= 0) if (useGammaCorrectionRGB) { - strip.setIndividual(udpIn[i] + arlsOffset, ((uint32_t)gamma8[udpIn[i+1]] << 16) | ((uint32_t)gamma8[udpIn[i+2]] << 8) | gamma8[udpIn[i+3]]); + strip.setPixelColor(udpIn[i] + arlsOffset, gamma8[udpIn[i+1]], gamma8[udpIn[i+2]], gamma8[udpIn[i+3]]); } else { - strip.setIndividual(udpIn[i], ((uint32_t)udpIn[i+1] << 16) | ((uint32_t)udpIn[i+2] << 8) | udpIn[i+3]); + strip.setPixelColor(udpIn[i] + arlsOffset, udpIn[i+1], udpIn[i+2], udpIn[i+3]); } } + strip.show(); } } }