diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2008-07-12 12:43:03 +0000 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2008-07-12 12:43:03 +0000 |
commit | c8c4a26cade7ea5322cbef664343eb4d512ff05d (patch) | |
tree | f7ad0d08f25bddd6774b49f60a94f2048027655b /gpscat | |
parent | 2a45e351695e47836ad63cd51f5d8337f155c7c6 (diff) | |
download | gpsd-c8c4a26cade7ea5322cbef664343eb4d512ff05d.tar.gz |
Fix gpscat to dump binary packets correctly.
Reenable some debugging in the packet getter, and add a bit more.
Diffstat (limited to 'gpscat')
-rwxr-xr-x | gpscat | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -34,7 +34,7 @@ if __name__ == '__main__': buf = "" try: try: - (options, arguments) = getopt.getopt(sys.argv[1:], "hps:v:V") + (options, arguments) = getopt.getopt(sys.argv[1:], "hps:tv:V") except getopt.GetoptError, msg: print "gpscat: " + str(msg) raise SystemExit, 1 @@ -53,7 +53,7 @@ if __name__ == '__main__': stopbits = int(val[-1]) val = val[:-2] speed = int(val) - elif switch == 't': + elif switch == '-t': typeflag = True rawmode = False elif switch == '-v': |