oops - we were never sending 'fixed' gps positions to other nodes

This commit is contained in:
Kevin Hester 2021-02-14 12:02:24 +08:00
parent a872231f8a
commit 66a7e8eab9

View File

@ -232,7 +232,7 @@ int MeshService::onGPSChanged(const meshtastic::GPSStatus *unused)
else { else {
// The GPS has lost lock, if we are fixed position we should just keep using // The GPS has lost lock, if we are fixed position we should just keep using
// the old position // the old position
if(!radioConfig.preferences.fixed_position) { if(radioConfig.preferences.fixed_position) {
DEBUG_MSG("WARNING: Using fixed position\n"); DEBUG_MSG("WARNING: Using fixed position\n");
} else { } else {
// throw away old position // throw away old position
@ -242,7 +242,7 @@ int MeshService::onGPSChanged(const meshtastic::GPSStatus *unused)
} }
} }
DEBUG_MSG("got gps notify time=%u, lat=%d, bat=%d\n", pos.latitude_i, pos.time, pos.battery_level); DEBUG_MSG("got gps notify time=%u, lat=%d, bat=%d\n", pos.time, pos.latitude_i, pos.battery_level);
// Update our current position in the local DB // Update our current position in the local DB
nodeDB.updatePosition(nodeDB.getNodeNum(), pos); nodeDB.updatePosition(nodeDB.getNodeNum(), pos);