Skip to content

Commit

Permalink
correct dongle LED
Browse files Browse the repository at this point in the history
  • Loading branch information
softwarecrash committed Sep 21, 2023
1 parent ae0bc94 commit 860dc6c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/status-LED.h
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,9 @@ void notificationLED()
ledState = 1;


digitalWrite(LED_COM, mppClient.connection);
digitalWrite(LED_SRV, mqttclient.connected());
digitalWrite(LED_NET, (WiFi.status() == WL_CONNECTED) ? true : false);
digitalWrite(LED_COM, !mppClient.connection);
digitalWrite(LED_SRV, !mqttclient.connected());
digitalWrite(LED_NET, !(WiFi.status() == WL_CONNECTED) ? true : false);
}

if (ledState > 0)
Expand Down

0 comments on commit 860dc6c

Please sign in to comment.