mobile/GPS: fix two errors in the GPS handling

First, the time zone adjustment was wrong - this as written could only
ever have worked in UTC or by pure chance.

Second, the order of alerting the UI of the availability of a GPS fix
was also incorrect creating a race between the UI and our data
structures.

Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Dirk Hohndel 2021-01-13 11:35:51 -08:00
parent 4454cf0381
commit 702d09df9f
3 changed files with 5 additions and 4 deletions

View file

@ -204,6 +204,7 @@ Item {
target: manager
onWaitingForPositionChanged: {
gpsText = manager.getCurrentPosition()
manager.appendTextToLog("received updated position info " + gpsText)
}
}