small update to avoid sending gps = 0

This commit is contained in:
richonguzman 2024-10-21 11:16:31 -03:00
parent 8beb7c0465
commit 5ceff0064f

View file

@ -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;
}