Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

node: Fixing bug in button calculation

  • Loading branch information...
commit ee18b784b659cd9bbcd6701608375e795d3113dd 1 parent eee39d6
thammi thammi authored

Showing 1 changed file with 1 addition and 1 deletion. Show diff stats Hide diff stats

  1. +1 1  node_lib/buzz.js
2  node_lib/buzz.js
@@ -18,7 +18,7 @@ function Buzz(device) {
18 18
19 19 port.on("data", function(data) {
20 20 if(data[0] == "K") {
21   - that.emit("button", data[1] - 'A'.charCodeAt(0));
  21 + that.emit("button", data[1].charCodeAt(0) - 'A'.charCodeAt(0));
22 22 }
23 23 });
24 24 }

0 comments on commit ee18b78

Please sign in to comment.
Something went wrong with that request. Please try again.