Skip to content

Commit

Permalink
return before warmup - less flapping of warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
steadramon committed Sep 1, 2024
1 parent 897543d commit d2f92dd
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions ESPGeiger/src/Mqtt/MQTT_Client.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,11 @@ void MQTT_Client::loop(unsigned long now)

status.last_send = millis();
}

if (status.warmup) {
return;
}

if (gcounter.is_warning() != warnSent) {
warnSent = gcounter.is_warning();
int is_warning = 0;
Expand Down

0 comments on commit d2f92dd

Please sign in to comment.