diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2009-03-09 02:58:59 +0000 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2009-03-09 02:58:59 +0000 |
commit | 80e6d49f3cc4cfb92700cdc4261351f9a543a0d8 (patch) | |
tree | 22cfeb7a04ef0df5d9fb9bd453ea36c332165c17 /gpscat | |
parent | b3f3b175a802ed72ad891f42129b240a68fc2d74 (diff) | |
download | gpsd-80e6d49f3cc4cfb92700cdc4261351f9a543a0d8.tar.gz |
On NMEA packets always insert \n, since the trailing \n gets hexdumped.
Diffstat (limited to 'gpscat')
-rwxr-xr-x | gpscat | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -122,8 +122,7 @@ if __name__ == '__main__': continue if typeflag: sys.stdout.write(`ptype` + " (" + `length` + "): " + hexdump(packet)) - if ptype not in (gpspacket.COMMENT_PACKET, gpspacket.NMEA_PACKET, gpspacket.GARMINTXT_PACKET): - sys.stdout.write("\n") + sys.stdout.write("\n") else: sys.stdout.write(hexdump(packet) + "\n") except KeyboardInterrupt: |