frontend: fix flash/eeprom padding
Fill space with 0xFF instead of 0x00. Addresses #58.
This commit is contained in:
		@ -126,7 +126,7 @@ class StcGal:
 | 
				
			|||||||
                print("WARNING: eeprom_image truncated!", file=sys.stderr)
 | 
					                print("WARNING: eeprom_image truncated!", file=sys.stderr)
 | 
				
			||||||
                eedata = eedata[0:ee_size]
 | 
					                eedata = eedata[0:ee_size]
 | 
				
			||||||
            if len(bindata) < code_size:
 | 
					            if len(bindata) < code_size:
 | 
				
			||||||
                bindata += bytes(code_size - len(bindata))
 | 
					                bindata += bytes([0xff] * (code_size - len(bindata)))
 | 
				
			||||||
            elif len(bindata) > code_size:
 | 
					            elif len(bindata) > code_size:
 | 
				
			||||||
                print("WARNING: eeprom_image overlaps code_image!", file=sys.stderr)
 | 
					                print("WARNING: eeprom_image overlaps code_image!", file=sys.stderr)
 | 
				
			||||||
                bindata = bindata[0:code_size]
 | 
					                bindata = bindata[0:code_size]
 | 
				
			||||||
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user