summaryrefslogtreecommitdiff
path: root/gpsprof
diff options
context:
space:
mode:
authorGary E. Miller <gem@rellim.com>2018-06-26 20:12:58 -0700
committerGary E. Miller <gem@rellim.com>2018-06-26 20:12:58 -0700
commitefd272c1853d41edbc1ca62af2d138f457533f3e (patch)
tree518baa1aeab2a07b4d82a401d79a39e847ffb42e /gpsprof
parente3397eadbb8c5137eef945c3337364521ae05736 (diff)
downloadgpsd-efd272c1853d41edbc1ca62af2d138f457533f3e.tar.gz
gpsprof: handle missing altitude in replots.
Diffstat (limited to 'gpsprof')
-rwxr-xr-xgpsprof3
1 files changed, 3 insertions, 0 deletions
diff --git a/gpsprof b/gpsprof
index fb01fecb..c70270d4 100755
--- a/gpsprof
+++ b/gpsprof
@@ -323,6 +323,9 @@ class spaceplot(plotter):
if sat.used:
sats_used += 1
+ if 'alt' not in self.session.data:
+ self.session.data['alt'] = gps.NaN
+
self.fixes.append((self.session.data['lat'],
self.session.data['lon'],
self.session.data['alt'], sats_used))