Skip to content

Commit

Permalink
Further nits
Browse files Browse the repository at this point in the history
  • Loading branch information
rwaldron committed Sep 5, 2015
1 parent 8e4af36 commit efe2402
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 0 additions & 2 deletions lib/light.js
Original file line number Diff line number Diff line change
Expand Up @@ -93,8 +93,6 @@ var Controllers = {
},
initialize: {
value: function(opts, dataHandler) {
var state = priv.get(this);

var address = opts.address || 0x39;
// var read = (address & 0x0F) | 0x80;
var gain = opts.gain || 0;
Expand Down
2 changes: 1 addition & 1 deletion test/light.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ exports["Light"] = {
setUp: function(done) {
this.board = newBoard();
this.clock = sinon.useFakeTimers();
this.analogRead = sinon.spy(board.io, "analogRead");
this.analogRead = sinon.spy(MockFirmata.prototype, "analogRead");
this.light = new Light({
pin: "A1",
freq: 100,
Expand Down

0 comments on commit efe2402

Please sign in to comment.