-
Notifications
You must be signed in to change notification settings - Fork 464
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Matter-Switch: Improve color temp conversion rounding (#1591)
Matter-Switch: Improve color temp conversion rounding This change adjusts the way that the color temperature bounds are rounded while converting them from mireds into Kelvin. Previously, they were rounded to the nearest hundreds value and this sometimes resulted in the range displayed in the ST app being larger than the range supported by the device. This change will prevent this from occurring by rounding the range slightly differently such that it is within the range supported by the device.
- Loading branch information
1 parent
b9f8bfd
commit ea8ea75
Showing
2 changed files
with
44 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters