summaryrefslogtreecommitdiff
path: root/gpsprof
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2011-09-29 21:18:19 -0400
committerEric S. Raymond <esr@thyrsus.com>2011-09-29 21:18:19 -0400
commit104f47e1ebf631650bb7be15f2390c4632e82316 (patch)
treeb81d97884b6f3be27107911f81404e227dcaae04 /gpsprof
parenta288b35ae72d57f01ec3f0d829f8087b5405a390 (diff)
downloadgpsd-104f47e1ebf631650bb7be15f2390c4632e82316.tar.gz
Avoid failure on very long gpsprof runs.
Diffstat (limited to 'gpsprof')
-rwxr-xr-xgpsprof4
1 files changed, 2 insertions, 2 deletions
diff --git a/gpsprof b/gpsprof
index 8d9b4ac9..e7fd9c23 100755
--- a/gpsprof
+++ b/gpsprof
@@ -47,10 +47,10 @@ class plotter:
self.fixes = []
self.start_time = int(time.time())
def whatami(self):
- "How do we identify this poltting run?"
+ "How do we identify this pollting run?"
return "%s, %s, %d %dN%d, cycle %ds" % \
(gps.misc.isotime(self.start_time),
- self.device['driver'], self.device['bps'],
+ self.device.get('driver', "unknown"), self.device['bps'],
9 - self.device['stopbits'],
self.device['stopbits'], self.device['cycle'])
def collect(self, verbose):