Closed octplane closed 9 years ago
Thanks for the pull request, but I am rewriting the light state module which should remove the need for this check altogether, and am changing the code around this function to use the new light state.
The changes will be available in version 1.0.0 of the library which is being released soon.
ok :)
When calling lightState with only a CT value, the rgb test would fail because the method rgb() had never been called before, thus matching the condition erronously. The simple test fix settings the color with
white(temp, bri)
.