Update gps_client.py counter

pi-sensors-auto-gps
Alan Johnston 3 days ago committed by GitHub
parent 08454a385d
commit 75762f120a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -13,10 +13,10 @@ import time
session = gps.gps(mode=gps.WATCH_ENABLE)
start = time.perf_timer()
start = time.perf_counter()
try:
while session.read() == 0 and ((time.perf_timer(0 - start)) < 1):
while session.read() == 0 and ((time.perf_counter(0 - start)) < 1):
print(gps.MODE_SET)
print(session.valid)
if not (gps.MODE_SET & session.valid):

Loading…
Cancel
Save

Powered by TurnKey Linux.