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

Fix for #20 - color transition now returns correct state #23

Merged

Conversation

alexschwantes
Copy link
Contributor

Fixing issue #20. Setting a transition in the color command now returns the correct end state to MQTT.

Adding two new methods:
* setFadeToColor: sets the end color that the fade will fade to. This is so that the correct state can be sent to MQTT (this is the end state after the fade has completed).
* setFadeColor: Used to fade the color without updating the internal m_color variables that represent the color the fading will change to. This method also includes a similar fix to that in smrtnt#21, so if the color is set with a transition from the off state, it will set the internal state to ON.
@alexschwantes alexschwantes changed the title Fix for #20 Fix for #20 - color transition now returns correct state Apr 21, 2017
@smrtnt smrtnt merged commit c5cf321 into smrtnt:master Apr 23, 2017
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.

None yet

2 participants