summaryrefslogtreecommitdiff
path: root/gpscat
diff options
context:
space:
mode:
Diffstat (limited to 'gpscat')
-rwxr-xr-xgpscat4
1 files changed, 2 insertions, 2 deletions
diff --git a/gpscat b/gpscat
index 6576a50e..037b57da 100755
--- a/gpscat
+++ b/gpscat
@@ -104,7 +104,7 @@ if __name__ == '__main__':
raise SystemExit(1)
if stopbits:
cflag &= ~termios.CSIZE
- cflag |= (termios.CS8, termios.CS7)[stopbits-1]
+ cflag |= (termios.CS8, termios.CS7)[stopbits - 1]
if parity:
if parity == 'N':
iflag &= ~termios.PARENB
@@ -139,7 +139,7 @@ if __name__ == '__main__':
break
if typeflag:
sys.stdout.write(repr(ptype) + " (" + repr(length)
- + "@" + repr(counter-length) + "): "
+ + "@" + repr(counter - length) + "): "
+ hexdump(packet))
sys.stdout.write("\n")
else: