Update output_hex.py

This commit is contained in:
Ben V. Brown
2024-08-20 22:50:13 +10:00
parent 97756fe21c
commit ee6c5e911a

View File

@@ -65,13 +65,6 @@ class HexOutput:
def write(generator):
output.write("".join(generator))
if len(data) % cls.INTELHEX_BYTES_PER_LINE != 0:
raise ValueError(
"Program error: Size of LCD data is not evenly divisible by {}".format(
cls.INTELHEX_BYTES_PER_LINE
)
)
address_lo = data_address & 0xFFFF
address_hi = (data_address >> 16) & 0xFFFF