You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When the device is not a serial device gpsd.device() fails as "speed" and "driver" are not in the dict.
Made the following changes:
def device():
""" Get information about current gps device
:return: dict
"""
global state
speed = ''
if 'bps' in state['devices']['devices'][0].keys():
speed = state['devices']['devices'][0]['bps']
driver = ''
if 'driver' in state['devices']['devices'][0].keys():
driver = state['devices']['devices'][0]['driver']
return {
'path': state['devices']['devices'][0]['path'],
'speed': speed,
'driver': driver
}
The text was updated successfully, but these errors were encountered:
When the device is not a serial device gpsd.device() fails as "speed" and "driver" are not in the dict.
Made the following changes:
The text was updated successfully, but these errors were encountered: