Skip to content

Commit

Permalink
fixing bad emit pattern
Browse files Browse the repository at this point in the history
  • Loading branch information
BrianGenisio committed Oct 7, 2015
1 parent 2eb3b1e commit bccdd8b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/altimeter.js
Original file line number Diff line number Diff line change
Expand Up @@ -86,11 +86,11 @@ function Altimeter(opts) {
data.m = data.meters = this.meters;
data.ft = data.feet = this.feet;

this.emit("data", null, data);
this.emit("data", data);

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

0 comments on commit bccdd8b

Please sign in to comment.