summaryrefslogtreecommitdiff
path: root/gpsprof
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2009-09-29 00:19:49 +0000
committerEric S. Raymond <esr@thyrsus.com>2009-09-29 00:19:49 +0000
commit73625b44164a21b503dc76475884e68e32a604e0 (patch)
tree75c3b9230c81f6e741c4af8169810afe4d546760 /gpsprof
parent7a27d0cfef9d3b80042cb9f451ffd54245b29c3a (diff)
downloadgpsd-73625b44164a21b503dc76475884e68e32a604e0.tar.gz
Uninstrumented plot now works.
Diffstat (limited to 'gpsprof')
-rwxr-xr-xgpsprof8
1 files changed, 7 insertions, 1 deletions
diff --git a/gpsprof b/gpsprof
index 2fb0bac8..845c401c 100755
--- a/gpsprof
+++ b/gpsprof
@@ -408,7 +408,13 @@ def plotframe(await, fname, speed, threshold, title):
if len(session.data.devices) != 1:
print >>sys.stderr, "gpsprof: exactly one device must be attached."
sys.exit(1)
- path = session.data.devices[0]["path"]
+ device = session.data.devices[0]
+ path = device["path"]
+ session.baudrate = device["bps"]
+ session.parity = device["bps"]
+ session.stopbits = device["stopbits"]
+ session.cycle = device["cycle"]
+ session.gps_id = device["driver"]
# Set parameters
if speed:
session.send('?DEVICE={"path":"%s","bps:":%d}' % (path, speed))