From 1cd18e7f08db075891e4aa64425e87c94f58e46e Mon Sep 17 00:00:00 2001 From: Frank <91616163+softhack007@users.noreply.github.com> Date: Fri, 10 May 2024 19:22:41 +0200 Subject: [PATCH] Live preview: faster handling of "off" --- wled00/ws.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/wled00/ws.cpp b/wled00/ws.cpp index 08624b1e..32420fcc 100644 --- a/wled00/ws.cpp +++ b/wled00/ws.cpp @@ -186,6 +186,7 @@ void sendDataWs(AsyncWebSocketClient * client) // WLEDMM function to recover full-bright pixel (based on code from upstream alt-buffer, which is based on code from NeoPixelBrightnessBus) static uint32_t restoreColorLossy(uint32_t c, uint_fast8_t _restaurationBri) { if (_restaurationBri == 255) return c; + if (_restaurationBri == 0) return 0; uint8_t* chan = (uint8_t*) &c; for (uint_fast8_t i=0; i<4; i++) { uint_fast16_t val = chan[i];