diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2010-05-08 06:21:36 -0400 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2010-05-08 06:21:36 -0400 |
commit | b9f00506a7c07d9b5baa3f97764c5724c3080d4d (patch) | |
tree | 91669ed78f0242a44eb7ceadf970b30214425bd3 /gpscat | |
parent | 35b8ac11b20033450ba1af6bfaf2c68504fb8043 (diff) | |
download | gpsd-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-x | gpscat | 8 |
1 files changed, 1 insertions, 7 deletions
@@ -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)) |