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

.getColors() on LFXLight sometimes return null #16

Open
ekux44 opened this issue Jul 13, 2014 · 0 comments
Open

.getColors() on LFXLight sometimes return null #16

ekux44 opened this issue Jul 13, 2014 · 0 comments

Comments

@ekux44
Copy link
Contributor

ekux44 commented Jul 13, 2014

In my application, users are able to adjust hue+saturation separate of brightness. Since the LIFX SDK doesn't allow these to be sent separately, my current approach is to get and send the existing values for parameters I don't want to change

LFXLight mLight;
LFXHSBKColor.getColor(desiredHue, desiredSat, mLight.getColors().getBrightness(), 0);

However, sometimes getColors() returns null for no apparent reason, thus breaking this approach. Any suggestions?

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

No branches or pull requests

1 participant