mirror of
https://github.com/RfidResearchGroup/ChameleonMini.git
synced 2026-05-12 11:20:37 -07:00
Fix pad type, thanks @ptu
This commit is contained in:
@@ -86,7 +86,7 @@ class XModem:
|
||||
lastBlock = True
|
||||
if (0 < len(dataBlock) < 128):
|
||||
# Last part smaller than xmodem block -> pad it
|
||||
dataBlock += '\x00' * (128 - len(dataBlock))
|
||||
dataBlock += b'\x00' * (128 - len(dataBlock))
|
||||
if (len(dataBlock) == 128):
|
||||
# Write SOH, pktId, data and checksum
|
||||
self.ioStream.write(self.BYTE_SOH)
|
||||
|
||||
Reference in New Issue
Block a user