[WLED] Zero out MSB as it will be treated as white (#10252)

Signed-off-by: Matthias Fetzer <kontakt@der-fetzer.de>
This commit is contained in:
DerFetzer 2021-03-13 20:00:42 +01:00 committed by GitHub
parent a213d3d296
commit 6b8589440f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -256,7 +256,7 @@ public class WLedHandler extends BaseThingHandler {
* @return WLED needs the letter h followed by 2 digit HEX code for RRGGBB
*/
private String createColorHex(HSBType hsb) {
return String.format("h%06X", hsb.getRGB());
return String.format("h%06X", hsb.getRGB() & 0x00FFFFFF);
}
@Override