Skip to content

Commit

Permalink
small update to avoid sending gps = 0
Browse files Browse the repository at this point in the history
  • Loading branch information
richonguzman committed Oct 21, 2024
1 parent 8beb7c0 commit 5ceff00
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 5ceff00

Please sign in to comment.