diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2009-09-29 00:19:49 +0000 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2009-09-29 00:19:49 +0000 |
commit | 73625b44164a21b503dc76475884e68e32a604e0 (patch) | |
tree | 75c3b9230c81f6e741c4af8169810afe4d546760 /gpsprof | |
parent | 7a27d0cfef9d3b80042cb9f451ffd54245b29c3a (diff) | |
download | gpsd-73625b44164a21b503dc76475884e68e32a604e0.tar.gz |
Uninstrumented plot now works.
Diffstat (limited to 'gpsprof')
-rwxr-xr-x | gpsprof | 8 |
1 files changed, 7 insertions, 1 deletions
@@ -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)) |