diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2009-01-07 23:37:03 +0000 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2009-01-07 23:37:03 +0000 |
commit | d189b1b4bcd710aee63e288598aba431386e867e (patch) | |
tree | 527f41940744ae5b31f7ca700ea005bd7d66c875 /gpscat | |
parent | f9da2d1289d923e27254c498f7f08cc9b172940a (diff) | |
download | gpsd-d189b1b4bcd710aee63e288598aba431386e867e.tar.gz |
There is no more EOF_PACKET type, so fix gpscat.
Diffstat (limited to 'gpscat')
-rwxr-xr-x | gpscat | 4 |
1 files changed, 1 insertions, 3 deletions
@@ -109,10 +109,8 @@ if __name__ == '__main__': else: (type, packet) = getter.get(tty) length = len(packet) - if type == gpspacket.EOF_PACKET: + if type == gpspacket.BAD_PACKET or length == 0: break - elif type == gpspacket.BAD_PACKET or length == 0: - continue if typeflag: sys.stdout.write(`type` + " (" + `length` + "): " + hexdump(packet) + "\n") else: |