summaryrefslogtreecommitdiff
path: root/gpscat
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2010-05-08 06:21:36 -0400
committerEric S. Raymond <esr@thyrsus.com>2010-05-08 06:21:36 -0400
commitb9f00506a7c07d9b5baa3f97764c5724c3080d4d (patch)
tree91669ed78f0242a44eb7ceadf970b30214425bd3 /gpscat
parent35b8ac11b20033450ba1af6bfaf2c68504fb8043 (diff)
downloadgpsd-b9f00506a7c07d9b5baa3f97764c5724c3080d4d.tar.gz
Remove code to terminate gpscat on bad packet.
This wasn't the documented behavior. Add a clarification, too.
Diffstat (limited to 'gpscat')
-rwxr-xr-xgpscat8
1 files changed, 1 insertions, 7 deletions
diff --git a/gpscat b/gpscat
index 2db80df9..3fe1fd8b 100755
--- a/gpscat
+++ b/gpscat
@@ -107,13 +107,7 @@ if __name__ == '__main__':
else:
(length, ptype, packet) = getter.get(tty)
seqno += 1
- # Don't crap out if the first packet is bad, we might
- # be seeing an incomplete read from a tty.
- if ptype == sniffer.BAD_PACKET and seqno >= 2:
- if debuglevel >= BASELEVEL:
- sys.stdout.write("gpscat: terminating on bad packet\n")
- break
- elif length == 0:
+ if length == 0:
break
if typeflag:
sys.stdout.write(`ptype` + " (" + `length` + "): " + hexdump(packet))