mirror of
https://github.com/openhab/openhab-addons.git
synced 2025-01-25 14:55:55 +01:00
[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:
parent
a213d3d296
commit
6b8589440f
@ -256,7 +256,7 @@ public class WLedHandler extends BaseThingHandler {
|
|||||||
* @return WLED needs the letter h followed by 2 digit HEX code for RRGGBB
|
* @return WLED needs the letter h followed by 2 digit HEX code for RRGGBB
|
||||||
*/
|
*/
|
||||||
private String createColorHex(HSBType hsb) {
|
private String createColorHex(HSBType hsb) {
|
||||||
return String.format("h%06X", hsb.getRGB());
|
return String.format("h%06X", hsb.getRGB() & 0x00FFFFFF);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
Loading…
Reference in New Issue
Block a user