Skip to content

Commit

Permalink
actually display the failing CRC
Browse files Browse the repository at this point in the history
  • Loading branch information
bradjc committed Dec 17, 2016
1 parent 0dfc83f commit 7edc347
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tockloader/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,7 @@ def flash_binary (self, binary, address):
crc_loader = crc_function(binary, 0)

if crc_bootloader != crc_loader:
print('Error: CRC check failed. Expected: 0x{:04x}, Got: 0x{:04x}')
print('Error: CRC check failed. Expected: 0x{:04x}, Got: 0x{:04x}'.format(crc_loader, crc_bootloader))
return False
else:
print('CRC check passed. Binaries successfully loaded.')
Expand Down

0 comments on commit 7edc347

Please sign in to comment.