Skip to content

Commit

Permalink
node: Fixing bug in button calculation
Browse files Browse the repository at this point in the history
  • Loading branch information
thammi committed Apr 22, 2011
1 parent eee39d6 commit ee18b78
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion node_lib/buzz.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ function Buzz(device) {

port.on("data", function(data) {
if(data[0] == "K") {
that.emit("button", data[1] - 'A'.charCodeAt(0));
that.emit("button", data[1].charCodeAt(0) - 'A'.charCodeAt(0));
}
});
}
Expand Down

0 comments on commit ee18b78

Please sign in to comment.