discriminate local/remote node position updates (#889)

This commit is contained in:
a-f-G-U-C
2021-10-23 01:58:56 +00:00
committed by GitHub
parent 992bbe76d7
commit d0fb363422
3 changed files with 3 additions and 3 deletions

View File

@@ -236,7 +236,7 @@ int MeshService::onGPSChanged(const meshtastic::GPSStatus *unused)
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
nodeDB.updatePosition(nodeDB.getNodeNum(), pos);
nodeDB.updatePosition(nodeDB.getNodeNum(), pos, RX_SRC_LOCAL);
return 0;
}