Closed devbobo closed 8 years ago
I've noticed this issue also. I hope this PR gets merged!
@@ master #38 diff @@
==========================================
Files 42 42
Lines 1252 1252
Methods 103 103
Messages 0 0
Branches 195 195
==========================================
Hits 724 724
Misses 528 528
Partials 0 0
Powered by Codecov. Last update bd30a43...239ba35
Does look good, thanks for your work!
node-lifx has always had issues with scaling. Quite often the scaling with
node-lifx
doesn't match what the LIFX app is showing.Math.round
should be used instead ofMath.floor
.For test purposes, set
Brightness
to49%
and then read back the corresponding value and it will read48%
.This PR resolves that discrepancy.