Skip to content

Commit

Permalink
Light: fix analog scaling
Browse files Browse the repository at this point in the history
  • Loading branch information
rwaldron committed Oct 8, 2015
1 parent 75e744d commit c7c2a43
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/light.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,7 @@ var Controllers = {
},
toIntensityLevel: {
value: function(raw) {
// TODO: Scale to percentage
return raw;
return __.scale(raw, 0, 1023, 0, 100);
}
}
},
Expand Down

0 comments on commit c7c2a43

Please sign in to comment.