From 2470455294c45688904be8150894848a9e8c5022 Mon Sep 17 00:00:00 2001 From: richonguzman Date: Sun, 19 May 2024 04:45:15 -0400 Subject: [PATCH] Wx data will be send at start also --- src/station_utils.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/station_utils.cpp b/src/station_utils.cpp index 786370d..1be344a 100644 --- a/src/station_utils.cpp +++ b/src/station_utils.cpp @@ -42,7 +42,7 @@ uint8_t updateCounter = Config.sendCommentAfterXBeacons; bool wxRequestStatus = false; uint32_t wxRequestTime = 0; -uint32_t lastTelemetryTx = millis(); +uint32_t lastTelemetryTx = 0; uint32_t telemetryTx = millis(); String firstNearTracker; @@ -460,7 +460,7 @@ namespace STATION_Utils { if (Config.bme.active && Config.bme.sendTelemetry) { lastTx = millis() - lastTxTime; telemetryTx = millis() - lastTelemetryTx; - if (telemetryTx > 10 * 60 * 1000 && lastTx > 10 * 1000) { + if ((lastTelemetryTx == 0 || telemetryTx > 10 * 60 * 1000) && lastTx > 10 * 1000) { sendBeacon(1); lastTelemetryTx = millis(); }