projects
/
gigfinder
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Change to use json and event objects
[gigfinder]
/
src
/
opt
/
gigfinder
/
locator.py
diff --git
a/src/opt/gigfinder/locator.py
b/src/opt/gigfinder/locator.py
index
e562e8d
..
8ed0ece
100644
(file)
--- 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:
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]
self.fix_count += 1
if self.fix_count > 1:
self.lat, self.long = device.fix[4:6]