Revert "Merge pull request #8788 from kaidokert/master"

This reverts commit d478d6bf80, reversing
changes made to f9d07f373f.
pull/8915/head
Cruz Monrreal II 2018-11-30 00:06:05 -06:00
parent 5047ea4f42
commit fca8877fea
1 changed files with 1 additions and 1 deletions

View File

@ -388,7 +388,7 @@ def _fill_header(region_list, current_region):
else:
ih = intelhex_offset(region_dict[data].filename, offset=region_dict[data].start)
if subtype.startswith("CRCITT32"):
fmt = {"CRCITT32be": ">L", "CRCITT32le": "<L"}[subtype]
fmt = {"CRCITT32be": ">l", "CRCITT32le": "<l"}[subtype]
header.puts(start, struct.pack(fmt, zlib.crc32(ih.tobinarray())))
elif subtype.startswith("SHA"):
if subtype == "SHA256":