From 702d09df9fe582d253607589c4b88ccd62502883 Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Wed, 13 Jan 2021 11:35:51 -0800 Subject: 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 --- mobile-widgets/qml/DiveDetailsEdit.qml | 1 + 1 file changed, 1 insertion(+) (limited to 'mobile-widgets') diff --git a/mobile-widgets/qml/DiveDetailsEdit.qml b/mobile-widgets/qml/DiveDetailsEdit.qml index ededf8196..5fb2b2cde 100644 --- a/mobile-widgets/qml/DiveDetailsEdit.qml +++ b/mobile-widgets/qml/DiveDetailsEdit.qml @@ -204,6 +204,7 @@ Item { target: manager onWaitingForPositionChanged: { gpsText = manager.getCurrentPosition() + manager.appendTextToLog("received updated position info " + gpsText) } } -- cgit v1.2.3-70-g09d2