Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

node: Fixing bug in button calculation

  • Loading branch information...
commit ee18b784b659cd9bbcd6701608375e795d3113dd 1 parent eee39d6
thammi thammi authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  node_lib/buzz.js
2  node_lib/buzz.js
View
@@ -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));
}
});
}
Please sign in to comment.
Something went wrong with that request. Please try again.