aboutsummaryrefslogtreecommitdiff
path: root/decode/analyze.py
diff options
context:
space:
mode:
Diffstat (limited to 'decode/analyze.py')
-rwxr-xr-xdecode/analyze.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/decode/analyze.py b/decode/analyze.py
index 36db3962..c72a1d32 100755
--- a/decode/analyze.py
+++ b/decode/analyze.py
@@ -40,11 +40,11 @@ class Packet:
if data[len(data) - 2:] == "0d":
data = data[:len(data) - 2]
self.type = TO_MODEM
-# elif data[len(data) - 6:] == "30307e":
+# elif data[len(data) - 6:] == "30307e":
# # device->host: remove HDLC terminator and fake CRC
# data = data[:len(data) - 6]
# self.type = TO_HOST
- elif data[len(data) - 2:] == "7e":
+ elif data[len(data) - 2:] == "7e":
# device->host: remove HDLC terminator and CRC
data = data[:len(data) - 6]
self.type = TO_HOST
@@ -82,7 +82,7 @@ class Packet:
elif self.type == TO_HOST:
line = "<"
- offset = 0
+ offset = 0
items = []
printed = False
for i in self.data:
@@ -140,8 +140,8 @@ class FindPackets(handler.ContentHandler):
self.inPayload = False
elif name == "payload":
if self.packet:
- p = Packet(self.packet, self.idx)
- self.idx = self.idx + 1
+ p = Packet(self.packet, self.idx)
+ self.idx = self.idx + 1
packets.append(p)
self.packet = None