X-Git-Url: http://git.maemo.org/git/?p=gigfinder;a=blobdiff_plain;f=src%2Fopt%2Fgigfinder%2Flocator.py;h=8ed0ece91a8c41ca9594bf22bde8822edf40e37d;hp=e562e8d442fa5bbf6ded3a01e11210ec69f6bd5e;hb=cbc998e09ef123ff713c59b76ca37b00a2487bee;hpb=19cbc70c06bdedf3561851edda11a42ae282b79a diff --git a/src/opt/gigfinder/locator.py b/src/opt/gigfinder/locator.py index e562e8d..8ed0ece 100644 --- a/src/opt/gigfinder/locator.py +++ b/src/opt/gigfinder/locator.py @@ -38,6 +38,7 @@ class LocationUpdater: if device.fix: # once fix is found and long, lat available set long lat if device.fix[1] & location.GPS_DEVICE_LATLONG_SET: + # wait for a second fix before exiting self.fix_count += 1 if self.fix_count > 1: self.lat, self.long = device.fix[4:6]