Swap endianness
This commit is contained in:
parent
2063a04f31
commit
db02c3ab30
1 changed files with 1 additions and 1 deletions
|
@ -210,7 +210,7 @@ class APDUPacket(object):
|
|||
if blob[pos] == 0xff:
|
||||
# length field is next two bytes.
|
||||
# @todo: could be wrong:
|
||||
length = (blob[pos + 1] << 8) + blob[pos + 2]
|
||||
length = (blob[pos + 2] << 8) + blob[pos + 1]
|
||||
pos += 2 # consume 2 bytes.
|
||||
else:
|
||||
length = blob[pos]
|
||||
|
|
Loading…
Reference in a new issue