summaryrefslogtreecommitdiff
path: root/gpscat
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2009-03-09 02:58:59 +0000
committerEric S. Raymond <esr@thyrsus.com>2009-03-09 02:58:59 +0000
commit80e6d49f3cc4cfb92700cdc4261351f9a543a0d8 (patch)
tree22cfeb7a04ef0df5d9fb9bd453ea36c332165c17 /gpscat
parentb3f3b175a802ed72ad891f42129b240a68fc2d74 (diff)
downloadgpsd-80e6d49f3cc4cfb92700cdc4261351f9a543a0d8.tar.gz
On NMEA packets always insert \n, since the trailing \n gets hexdumped.
Diffstat (limited to 'gpscat')
-rwxr-xr-xgpscat3
1 files changed, 1 insertions, 2 deletions
diff --git a/gpscat b/gpscat
index 79e43e2e..457391d5 100755
--- a/gpscat
+++ b/gpscat
@@ -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: