From b93a9cb8bcf9df5e2be2fe705602cd606a3e5143 Mon Sep 17 00:00:00 2001 From: cschwinne Date: Fri, 18 Mar 2022 14:24:10 +0100 Subject: [PATCH] FIxed liveview --- wled00/ws.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wled00/ws.cpp b/wled00/ws.cpp index 35b21423..a27ec640 100644 --- a/wled00/ws.cpp +++ b/wled00/ws.cpp @@ -144,7 +144,7 @@ bool sendLiveLedsWs(uint32_t wsClient) buffer[1] = 1; //version uint16_t pos = 2; - for (uint16_t i= 0; pos < bufSize -3; i += n) + for (uint16_t i= 0; pos < bufSize -2; i += n) { uint32_t c = strip.getPixelColor(i); buffer[pos++] = qadd8(W(c), R(c)); //R, add white channel to RGB channels as a simple RGBW -> RGB map