diff --git a/stm-firmware/crc-patcher/crc-patch-elf.py b/stm-firmware/crc-patcher/crc-patch-elf.py index 9a20386..64e3439 100755 --- a/stm-firmware/crc-patcher/crc-patch-elf.py +++ b/stm-firmware/crc-patcher/crc-patch-elf.py @@ -89,7 +89,8 @@ with open(filename, 'r+b') as f: print('Section for flash CRC missing!') sys.exit(-1) if flashcrc_sec.data_size != 6*4: - print("Warning!!! .flashcrc section has wrong size:",flashcrc_sec.data_size) + print("Error: .flashcrc section has wrong size:",flashcrc_sec.data_size) + sys.exit(-1); crc_sec_data = bytearray(flashcrc_sec.data()) magic1 = struct.unpack('