Update gps_client.py make fail -1 0 0 0

pi-sensors-auto-gps
Alan Johnston 4 days ago committed by GitHub
parent 0ffa6c7512
commit f965097f55
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -11,13 +11,13 @@ run this way: python3 example1.py.txt
import gps # the gpsd interface module import gps # the gpsd interface module
import time import time
try:
mode = -1 mode = -1
lat = 0 lat = 0
lon = 0 lon = 0
alt = 0 alt = 0
try:
session = gps.gps(mode=gps.WATCH_ENABLE) session = gps.gps(mode=gps.WATCH_ENABLE)
start = time.perf_counter() start = time.perf_counter()
@ -64,6 +64,6 @@ try:
exit(0) exit(0)
except: except:
print("%d %.6f %.6f %.1f" % (mode, lat, lon, alt)) print("-1 0 0 0)
exit(0) exit(0)

Loading…
Cancel
Save

Powered by TurnKey Linux.