Skip to content
Snippets Groups Projects
Verified Commit 69b99f4a authored by Anne Jan Brouwer's avatar Anne Jan Brouwer :speech_balloon:
Browse files

print(crc) for python3 compat

parent e438ca99
No related branches found
No related tags found
No related merge requests found
Pipeline #135 failed
......@@ -5,12 +5,12 @@ crc = 0
data = open(sys.argv[1]).read()
crc = crc16.crc16xmodem(data)
print crc
print(crc)
padded = data + chr(crc >> 8) + chr(crc & 0xFF)
crc = 0
crc = crc16.crc16xmodem(padded)
print crc
print(crc)
open(sys.argv[1], 'w').write(padded)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment