Skip to content

Commit

Permalink
Update main.cpp
Browse files Browse the repository at this point in the history
fix webhook relais control
  • Loading branch information
softwarecrash authored Feb 1, 2024
1 parent 0799ad5 commit 3d7575d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -550,7 +550,7 @@ void setup()
{
DEBUG_PRINTLN(F("<WEBS> Webcall: set relais to: ")+(String)p->value());
// DEBUG_WEBLN(F("<WEBS> Webcall: set relais to: ")+(String)p->value());
if(p->value() == "true"){
if(p->value().toInt() == 1){
relaisComparsionResult = true;
}
if(p->value().toInt() == 0){
Expand Down Expand Up @@ -1211,4 +1211,4 @@ bool sendHaDiscovery()
mqttclient.endPublish();
}
return true;
};
};

0 comments on commit 3d7575d

Please sign in to comment.