mirror of
https://github.com/wled/WLED.git
synced 2025-07-19 16:56:35 +00:00
Peek on/off fix
This commit is contained in:
parent
4afed48f58
commit
b209b1e481
@ -206,12 +206,9 @@ bool sendLiveLedsWs(uint32_t wsClient)
|
|||||||
uint8_t g = G(c);
|
uint8_t g = G(c);
|
||||||
uint8_t b = B(c);
|
uint8_t b = B(c);
|
||||||
uint8_t w = W(c);
|
uint8_t w = W(c);
|
||||||
//buffer[pos++] = scale8(qadd8(w, r), strip.getBrightness()); //R, add white channel to RGB channels as a simple RGBW -> RGB map
|
buffer[pos++] = bri ? qadd8(w, r) : 0; //R, add white channel to RGB channels as a simple RGBW -> RGB map
|
||||||
//buffer[pos++] = scale8(qadd8(w, g), strip.getBrightness()); //G
|
buffer[pos++] = bri ? qadd8(w, g) : 0; //G
|
||||||
//buffer[pos++] = scale8(qadd8(w, b), strip.getBrightness()); //B
|
buffer[pos++] = bri ? qadd8(w, b) : 0; //B
|
||||||
buffer[pos++] = qadd8(w, r); //R, add white channel to RGB channels as a simple RGBW -> RGB map
|
|
||||||
buffer[pos++] = qadd8(w, g); //G
|
|
||||||
buffer[pos++] = qadd8(w, b); //B
|
|
||||||
}
|
}
|
||||||
|
|
||||||
wsc->binary(std::move(wsBuf));
|
wsc->binary(std::move(wsBuf));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user