Skip to content

Commit

Permalink
Light: fix change condition
Browse files Browse the repository at this point in the history
Signed-off-by: Rick Waldron <[email protected]>
  • Loading branch information
rwaldron committed May 26, 2016
1 parent 6f0a2d4 commit 7eba5f7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/light.js
Original file line number Diff line number Diff line change
Expand Up @@ -251,8 +251,8 @@ function Light(opts) {

this.emit("data", data);

if (raw !== last) {
last = raw;
if (this.level !== last) {
last = this.level;
this.emit("change", data);
}
}.bind(this), freq);
Expand Down

0 comments on commit 7eba5f7

Please sign in to comment.