From 860dc6cf8fd781219299711203566cb740299966 Mon Sep 17 00:00:00 2001 From: Softwarecrash Date: Thu, 21 Sep 2023 10:32:14 +0200 Subject: [PATCH] correct dongle LED --- src/status-LED.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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)