Skip to content

Commit

Permalink
updated readme - remove logging
Browse files Browse the repository at this point in the history
  • Loading branch information
plhyhc committed Jun 15, 2020
1 parent 9506884 commit 24c3bf7
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ Rename config.sample.json to config.json and place in .homebridge/config.json

```
sudo npm install -g --unsafe-perm homebridge
sudo npm install -g homebridge-garage-door-wsensor
sudo npm install -g --unsafe-perm homebridge-garage-door-wsensor
```
Rename config.sample.json to config.json and place in .homebridge/config.json

Expand Down
2 changes: 0 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,6 @@ GarageDoorOpener.prototype.checkSensor = function (callback) {

GarageDoorOpener.prototype.readSensorState = function () {
var val = this.gpioSensorVal(rpio.read(this.doorSensorPin));
console.log('readSensorState: ' + val);
return val == rpio.HIGH;
}

Expand All @@ -76,7 +75,6 @@ GarageDoorOpener.prototype.setState = function (val) {
}

GarageDoorOpener.prototype.setDoorOpen = function (newState, callback) {
console.log('setDoorOpen: ' + newState);
if (this.timerid !== -1) {
clearTimeout(this.timerid);
this.timerid = -1;
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -54,5 +54,5 @@
"type": "git",
"url": "git+https://github.com/plhyhc/homebridge-garage-door-wsensor.git"
},
"version": "2.0.0"
"version": "2.0.1"
}

0 comments on commit 24c3bf7

Please sign in to comment.