diff --git a/src/status-LED.h b/src/status-LED.h index 0bddd35..5e43a04 100644 --- a/src/status-LED.h +++ b/src/status-LED.h @@ -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)