From 7b3b6b45a1b63dabbb47c2ae0bcdd85a4f2b53fc Mon Sep 17 00:00:00 2001 From: Frank <91616163+softhack007@users.noreply.github.com> Date: Thu, 19 Dec 2024 23:18:25 +0100 Subject: [PATCH] fix preview flickering when sending out DDP or art-net BusNetwork stores original colors (not modified by global brightness), so `restoreColorLossy(strip.getPixelColor(i), stripBrightness);` was actually restoring brightness twice when running network output. This lead to preview flickering. --- wled00/ws.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wled00/ws.cpp b/wled00/ws.cpp index df8382488d..9b7d24e7bd 100644 --- a/wled00/ws.cpp +++ b/wled00/ws.cpp @@ -262,8 +262,8 @@ static bool sendLiveLedsWs(uint32_t wsClient) // WLEDMM added "static" if ((i/Segment::maxWidth)%(n)) i += Segment::maxWidth * (n-1); } #endif - uint32_t c = restoreColorLossy(strip.getPixelColor(i), stripBrightness); // WLEDMM full bright preview - does _not_ recover ABL reductions - //uint32_t c = strip.getPixelColorRestored(i); + //uint32_t c = restoreColorLossy(strip.getPixelColor(i), stripBrightness); // WLEDMM full bright preview - does _not_ recover ABL reductions + uint32_t c = strip.getPixelColorRestored(i); // WLEDMM begin: preview with color gamma correction if (gammaCorrectPreview) { uint8_t w = W(c); // not sure why, but it looks better if using "white" without corrections