Skip to content

Commit

Permalink
...
Browse files Browse the repository at this point in the history
  • Loading branch information
rooi committed Oct 29, 2016
1 parent 8863efe commit 849aad5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ module.exports = function(homebridge) {

sendCommand: function(command, callback) {
this.log("serialPort.open");
if(this.serialPort.isOpen){
if(this.serialPort.isOpen()){
this.log("serialPort is already open...");
if(callback) callback(0,1);
}
Expand Down

0 comments on commit 849aad5

Please sign in to comment.