Skip to content

Commit

Permalink
Updates for MQTT handler
Browse files Browse the repository at this point in the history
  • Loading branch information
gskjold committed Nov 18, 2023
1 parent d4feed3 commit ece5e58
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/SvelteUi/src/AmsWebServer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -419,7 +419,7 @@ void AmsWebServer::dataJson() {
mqttStatus = 0;
} else if(mqttHandler != NULL && mqttHandler->connected()) {
mqttStatus = 1;
} else if(mqttHandler != NULL && mqttHandler->lastError() == 0) {
} else if(mqttHandler == NULL || mqttHandler->lastError() == 0) {
mqttStatus = 2;
} else {
mqttStatus = 3;
Expand Down

0 comments on commit ece5e58

Please sign in to comment.