-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[wled] Fix White LED turns on to max brightness for any RGB changes #10252
Conversation
Signed-off-by: Matthias Fetzer <kontakt@der-fetzer.de>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Can only test with RGB strings here and it works fine so thanks for checking it out with RGBW strings.
Is it possible for you to fix the DCO signoff before the 2nd person comes to do a review? It may be ok since it is a minor change and only 1 line.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for your contribution! LGTM, applying the small patch exception.
You need to sign-off your commits. See https://www.openhab.org/docs/developer/contributing.html#sign-your-work The necessary commands are listed when you click on "Details" at the DCO check below.
Just saw that you signed the commit correctly. The check complained because you used a different name in your Git settings. |
Signed-off-by: Matthias Fetzer <kontakt@der-fetzer.de>
Signed-off-by: Matthias Fetzer <kontakt@der-fetzer.de> Signed-off-by: John Marshall <john.marshall.au@gmail.com>
Signed-off-by: Matthias Fetzer <kontakt@der-fetzer.de>
Signed-off-by: Matthias Fetzer <kontakt@der-fetzer.de>
Signed-off-by: Matthias Fetzer <kontakt@der-fetzer.de>
When you are using WLED with an RGBW strip every time you set a color the white channel is set to maximum brightness.
The source of the problem is the conversion from HSB to RGB that sets the MSB of the resulting int to 0xFF. This is then interpreted as white channel value by WLED.
This PR fixes this problem by zeroing the MSB.