Skip to content
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

Slightly change XY color conversion #5554

Merged
merged 1 commit into from
Mar 5, 2023
Merged

Conversation

TheJulianJES
Copy link
Contributor

@TheJulianJES TheJulianJES commented Mar 5, 2023

This basically reverts:

Like mentioned in my comment in that PR, this was only changed in one of many places.

They're unsigned 16 bit integers, so the max size is 65535. 0 to 65535 is 65536 (which might be what the specs are talking about?)

As I'm not sure the change was even correct in the first place (and ZHA ended up keeping 65535 + deCONZ also uses this), this PR changes that to match all other mentioned places again (so 65535 again).

This generally shouldn't make a difference, but it's better to be consistent everywhere.

@Koenkk Koenkk merged commit 419b500 into Koenkk:master Mar 5, 2023
@Koenkk
Copy link
Owner

Koenkk commented Mar 5, 2023

Thanks @TheJulianJES !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants