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

Setting 1% brightness results in 100% brightness #15

Open
robertvorthman opened this issue Sep 12, 2017 · 0 comments
Open

Setting 1% brightness results in 100% brightness #15

robertvorthman opened this issue Sep 12, 2017 · 0 comments

Comments

@robertvorthman
Copy link

When setting a brightness of 1% as shown below the result is 100% brightness.
wink.user().device("Lamp", function(device) { device.brightness(1, callback); });

One solution is to change line 38 of light.js to "greater than OR EQUAL to 1" so that the number 1 is properly converted to .01 on the next line.
if ( value >= 1 ) {

if ( value > 1 ) {

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