Skip to content

Commit

Permalink
Fix Status LED when no mqtt server is set
Browse files Browse the repository at this point in the history
  • Loading branch information
softwarecrash committed Jun 25, 2023
1 parent e35a5ee commit db5aca5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/status-LED.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ void notificationLED()
{
if (WiFi.status() != WL_CONNECTED)
ledState = 4;
else if (!mqttclient.connected())
else if (!mqttclient.connected() && _settings._mqttServer != "")
ledState = 3;
else if (errorcode != 0)
ledState = 2;
Expand Down

0 comments on commit db5aca5

Please sign in to comment.