Skip to content
This repository has been archived by the owner on Jul 5, 2023. It is now read-only.

Commit

Permalink
Update index.js
Browse files Browse the repository at this point in the history
  • Loading branch information
goedh452 authored Aug 19, 2018
1 parent 8925623 commit 79953a9
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -188,16 +188,16 @@ HttpSprinkler.prototype =
this.log("Setting power state to off");
}

// this.httpRequest(url, "", "GET", function (error, response, body)
// {
// if (error)
// {
// that.log("HTTP set status function failed %s", error.message);
// }
// }.bind(this))
this.httpRequest(url, "", "GET", function (error, response, body)
{
if (error)
{
that.log("HTTP set status function failed %s", error.message);
}
}.bind(this))

this.log("HTTP power function succeeded!");
this.valveService.getCharacteristic(Characteristic.InUse).updateValue(inuse);
//this.valveService.getCharacteristic(Characteristic.InUse).updateValue(inuse);
callback();

},
Expand Down

0 comments on commit 79953a9

Please sign in to comment.