Removed the unused chunk
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user