From 5ceff0064f4b6992d200f4864e26b5842a52f63f Mon Sep 17 00:00:00 2001 From: richonguzman Date: Mon, 21 Oct 2024 11:16:31 -0300 Subject: [PATCH] small update to avoid sending gps = 0 --- src/utils.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils.cpp b/src/utils.cpp index cc00891..577da50 100644 --- a/src/utils.cpp +++ b/src/utils.cpp @@ -186,7 +186,7 @@ namespace Utils { } #ifdef HAS_GPS - if (Config.beacon.gpsActive && gps.location.lat() == 0.0 && gps.location.lng() == 0.0) { + if (Config.beacon.gpsActive && gps.location.lat() == 0.0 && gps.location.lng() == 0.0 && Config.beacon.latitude == 0.0 && Config.beacon.longitude == 0.0) { GPS_Utils::getData(); beaconUpdate = false; }