Skip to content

Commit

Permalink
fix delayd mqtt transfer after boot
Browse files Browse the repository at this point in the history
  • Loading branch information
softwarecrash committed Dec 28, 2023
1 parent 0d4cf9e commit 26a3b07
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 26a3b07

Please sign in to comment.