frontend: fix flash/eeprom padding

Fill space with 0xFF instead of 0x00.  Addresses #58.
This commit is contained in:
Grigori Goronzy 2021-01-02 18:26:21 +01:00
parent a19fc406a3
commit eaeab65044

View File

@ -126,7 +126,7 @@ class StcGal:
print("WARNING: eeprom_image truncated!", file=sys.stderr)
eedata = eedata[0:ee_size]
if len(bindata) < code_size:
bindata += bytes(code_size - len(bindata))
bindata += bytes([0xff] * (code_size - len(bindata)))
elif len(bindata) > code_size:
print("WARNING: eeprom_image overlaps code_image!", file=sys.stderr)
bindata = bindata[0:code_size]