From 26a3b077001b12f2b04b8198d51dfa89d2981abe Mon Sep 17 00:00:00 2001 From: Softwarecrash Date: Thu, 28 Dec 2023 19:37:09 +0100 Subject: [PATCH] fix delayd mqtt transfer after boot --- src/main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.cpp b/src/main.cpp index 31619e3..dc651ae 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -511,7 +511,7 @@ bool prozessData() { notifyClients(); } - if (millis() - mqtttimer > (settings.data.mqttRefresh * 1000)) + if (millis() - mqtttimer > (settings.data.mqttRefresh * 1000) || mqtttimer == 0) { sendtoMQTT(); // Update data to MQTT server if we should mqtttimer = millis();