Added gpsd_report check
This commit is contained in:
@ -125,7 +125,14 @@ class QtGPSWindow(MainWindow):
|
||||
global gpsd_report
|
||||
report = gpsd_report
|
||||
|
||||
# make sure is good report
|
||||
try:
|
||||
if not 'class' in report:
|
||||
return
|
||||
except:
|
||||
return
|
||||
|
||||
# GPS messages
|
||||
if report['class'] == 'TPV':
|
||||
status = getattr(report, 'status', 0)
|
||||
mode = getattr(report, 'mode', 0)
|
||||
@ -241,8 +248,6 @@ class QtGPSWindow(MainWindow):
|
||||
self.viewSatellites.show()
|
||||
|
||||
self.show()
|
||||
except:
|
||||
pass
|
||||
|
||||
def toggle_logging(self):
|
||||
if self.log_enabled:
|
||||
|
||||
Reference in New Issue
Block a user