Tools: make_intel_hex.py: show required size in error message

This commit is contained in:
Peter Barker 2021-08-27 14:39:39 +10:00 committed by Peter Barker
parent cc39eafe02
commit 3d1ed896c8
1 changed files with 1 additions and 1 deletions

View File

@ -30,7 +30,7 @@ blimage = bytes(open(bootloaderfile, "rb").read())
blimage += bytes(struct.pack('B',255) * (reserve_kb * 1024 - len(blimage)))
if reserve_kb > 0 and len(blimage) != reserve_kb * 1024:
print("Bad blimage size %u" % len(blimage))
print("Bad blimage size %u (want %u)" % (len(blimage), reserve_kb * 1024))
sys.exit(1)
appimage = bytes(open(binfile,"rb").read())