Update gps_client.py remove extra prints

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

@ -48,15 +48,14 @@ try:
lon = session.fix.longitude lon = session.fix.longitude
if gps.isfinite(session.fix.altitude): if gps.isfinite(session.fix.altitude):
alt = session.fix.altitude alt = session.fix.altitude
print("%.6f %.6f %.6f" % # print("%.6f %.6f %.6f" % (session.fix.latitude, session.fix.longitude, session.fix.altitude))
(session.fix.latitude, session.fix.longitude, session.fix.altitude))
# else: # else:
# print(" 0 0 0") # print(" 0 0 0")
except KeyboardInterrupt: except KeyboardInterrupt:
# got a ^C. Say bye, bye # got a ^C. Say bye, bye
print('') # print('')
# Got ^C, or fell out of the loop. Cleanup, and leave. # Got ^C, or fell out of the loop. Cleanup, and leave.
session.close() session.close()

Loading…
Cancel
Save

Powered by TurnKey Linux.