summaryrefslogtreecommitdiff
path: root/gpscat
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2008-07-12 12:43:03 +0000
committerEric S. Raymond <esr@thyrsus.com>2008-07-12 12:43:03 +0000
commitc8c4a26cade7ea5322cbef664343eb4d512ff05d (patch)
treef7ad0d08f25bddd6774b49f60a94f2048027655b /gpscat
parent2a45e351695e47836ad63cd51f5d8337f155c7c6 (diff)
downloadgpsd-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-xgpscat4
1 files changed, 2 insertions, 2 deletions
diff --git a/gpscat b/gpscat
index 91b8ec71..bea8a3ea 100755
--- a/gpscat
+++ b/gpscat
@@ -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':