kopia lustrzana https://github.com/meshtastic/Meshtastic-Android
refactor: handle Position packets sent from phone
rodzic
c8e9410f5c
commit
17982efbea
|
@ -469,7 +469,7 @@ class UIViewModel @Inject constructor(
|
||||||
// If the packet contains position data then use it to update, if valid
|
// If the packet contains position data then use it to update, if valid
|
||||||
packet.position?.let { position ->
|
packet.position?.let { position ->
|
||||||
positionToPos.invoke(position)?.let {
|
positionToPos.invoke(position)?.let {
|
||||||
nodePositions[proto.from] = position
|
nodePositions[proto.from.takeIf { it != 0 } ?: myNodeNum] = position
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Ładowanie…
Reference in New Issue