1
0
Fork 0
mirror of https://github.com/opentx/opentx.git synced 2025-07-14 03:49:52 +03:00

Compilation fix

This commit is contained in:
Bertrand Songis 2019-11-15 16:33:11 +01:00
parent 3a7e006635
commit 42a59dca35
No known key found for this signature in database
GPG key ID: F189F79290FEC50F
5 changed files with 10 additions and 10 deletions

View file

@ -10,7 +10,7 @@ import struct
START_STOP = '\x7e'
BYTESTUFF = '\x7d'
BYTE_STUFF = '\x7d'
STUFF_MASK = '\x20'
DATA_FRAME = 0x10
@ -110,7 +110,7 @@ def ParsePacket(packet):
global lineNumber
# unstuff packet
while True:
pos = packet.find(BYTESTUFF)
pos = packet.find(BYTE_STUFF)
if pos == -1:
break
# print "found stuff at %d in %s" % (pos, dump(packet, 20))