mirror of
https://github.com/meshtastic/Meshtastic-Android.git
synced 2026-04-20 22:23:37 +00:00
remove deprecated lat/long float encodings
This commit is contained in:
parent
9f396c1608
commit
98d5f3a7be
3 changed files with 3 additions and 6 deletions
|
|
@ -42,8 +42,8 @@ data class Position(
|
|||
*/
|
||||
constructor(p: MeshProtos.Position, defaultTime: Int = currentTime()) : this(
|
||||
// We prefer the int version of lat/lon but if not available use the depreciated legacy version
|
||||
if (p.latitudeI == 0) p.latitudeD else degD(p.latitudeI),
|
||||
if (p.longitudeI == 0) p.longitudeD else degD(p.longitudeI),
|
||||
degD(p.latitudeI),
|
||||
degD(p.longitudeI),
|
||||
p.altitude,
|
||||
if (p.time != 0) p.time else defaultTime
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue