frontend: fix flash/eeprom padding
Fill space with 0xFF instead of 0x00. Addresses #58.
This commit is contained in:
parent
a19fc406a3
commit
eaeab65044
@ -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]
|
||||
|
Loading…
Reference in New Issue
Block a user