Removed the unused chunk

This commit is contained in:
Luxferre
2021-12-21 09:28:01 +02:00
parent ea3acd4781
commit 3515a8d5df
-9
View File
@@ -147,15 +147,6 @@ def write_flash_mem(infile, offset, blocksize, forceErase):
if forceErase:
erase_flash_mem(flen, startAddr)
send_file_to_addr(fdata, startAddr, True, True, blocksize)
'''
UNISOC_MAX_DL_CHUNK = 0x300000
curAddr = startAddr
while fdata:
fchunk = fdata[:UNISOC_MAX_DL_CHUNK]
send_file_to_addr(fchunk, curAddr, True, True, blocksize)
curAddr += len(fchunk)
fdata = fdata[UNISOC_MAX_DL_CHUNK:]
'''
def auto_int(x):
return int(x,0)