summaryrefslogtreecommitdiff
path: root/xgps
diff options
context:
space:
mode:
authorGary E. Miller <gem@rellim.com>2018-11-29 16:46:18 -0800
committerGary E. Miller <gem@rellim.com>2018-11-29 16:46:18 -0800
commitd55b2534699c2f767a2721e4f4ec50e6c459222b (patch)
tree28f5ec82411c0d421551bf8cd84a54218846c7dd /xgps
parent780f22ba05905e9d0b1e64ee07f624ecf3593101 (diff)
downloadgpsd-d55b2534699c2f767a2721e4f4ec50e6c459222b.tar.gz
xgps: Clear sat list and Skyview on empty SKY.
Diffstat (limited to 'xgps')
-rwxr-xr-xxgps11
1 files changed, 10 insertions, 1 deletions
diff --git a/xgps b/xgps
index 30131030..5a622151 100755
--- a/xgps
+++ b/xgps
@@ -1172,7 +1172,16 @@ class Base(object):
for i in range(data.satellites_seen, MAXCHANDISP):
for j in range(0, 6):
self.set_satlist_field(i, j, "")
- self.skyview.redraw(satellites)
+ else:
+ # clear all of the list
+ for i in range(0, MAXCHANDISP):
+ for j in range(0, 6):
+ self.set_satlist_field(i, j, "")
+ satellites = ()
+
+ # repaint Skyview
+ self.skyview.redraw(satellites)
+
# the first 21 fields are updated using TPV data
# the next 7 fields are updated using SKY data