Skip to content

Commit

Permalink
upgrade_exit status didn't work
Browse files Browse the repository at this point in the history
  • Loading branch information
JeroenSt committed Mar 22, 2021
1 parent 10cd9ec commit e1a2c4d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions espMQTT.ino
Original file line number Diff line number Diff line change
Expand Up @@ -801,8 +801,8 @@ void putdatamap(String topic, String value, bool sendupdate = true, bool forceup
if (datamapstruct.payload == "upgrading")
{
// When upgrading only accept upgradefailed or upgradedone as value
if ((value != "upgrade_exit") || (value != "rebooting")) return;
if (value != "upgrade_exit") value = "online";
if ((value != "upgrade_exit") && (value != "rebooting")) return;
if (value == "upgrade_exit") value = "online";
}
}
datamapstruct.onair = false;
Expand Down

0 comments on commit e1a2c4d

Please sign in to comment.