From 274f5f2f1feac133b920c314fc48efc056e565f4 Mon Sep 17 00:00:00 2001 From: Blaz Kristan Date: Sat, 22 Apr 2023 16:06:13 +0200 Subject: [PATCH] Bugfix. --- wled00/udp.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wled00/udp.cpp b/wled00/udp.cpp index afe7b335..5b7d15fd 100644 --- a/wled00/udp.cpp +++ b/wled00/udp.cpp @@ -771,7 +771,7 @@ uint8_t realtimeBroadcast(uint8_t type, IPAddress client, uint16_t length, uint8 // write the colors, the write write(const uint8_t *buffer, size_t size) // function is just a loop internally too - for (size_t i = 0; i < packetSize; i += 3) { + for (size_t i = 0; i < packetSize; i += (isRGBW?4:3)) { ddpUdp.write(scale8(buffer[bufferOffset++], bri)); // R ddpUdp.write(scale8(buffer[bufferOffset++], bri)); // G ddpUdp.write(scale8(buffer[bufferOffset++], bri)); // B