kopia lustrzana https://github.com/meshtastic/firmware
Merge pull request #759 from geeksville/dev1.2
update altitude in nodedb for received altitudes (reported by @iz1kga)pull/762/head
commit
770788d0a4
|
@ -451,6 +451,8 @@ void NodeDB::updatePosition(uint32_t nodeId, const Position &p)
|
|||
info->position.latitude_i = p.latitude_i;
|
||||
info->position.longitude_i = p.longitude_i;
|
||||
}
|
||||
if (p.altitude)
|
||||
info->position.altitude = p.altitude;
|
||||
info->has_position = true;
|
||||
updateGUIforNode = info;
|
||||
notifyObservers(true); // Force an update whether or not our node counts have changed
|
||||
|
|
Ładowanie…
Reference in New Issue