Fixed graphics color

This commit is contained in:
2021-06-29 15:30:37 -04:00
parent cf505104c8
commit fe77f30b9e

View File

@ -188,10 +188,10 @@ class QtGPSWindow(MainWindow):
cname = '#ffd300'
color = self.yellow
elif snr < 42:
color = '#00ff00'
cname = '#00ff00'
color = self.green
else:
color = '#0000ff'
cname = '#0000ff'
color = self.blue
txt = "%4u %4u %4u %3u %1u" % (prn, azim, elev, snr, used)
@ -289,8 +289,8 @@ class QtGPSWindow(MainWindow):
if os.path.isfile('config.yaml'):
with open('config.yaml') as f:
config = yaml.load(f, Loader=yaml.FullLoader)
if 'host' in config:
gpsd_host = config['host']
if 'gpsd_host' in config:
gpsd_host = config['gpsd_host']
if __name__ == '__main__':
app = QApplication(sys.argv)