Fix expected type of default parameter for filename

This commit is contained in:
a10kiloham 2024-09-05 15:33:44 +01:00 committed by GitHub
parent 898fedc9d2
commit 6e28c1f085
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -653,7 +653,7 @@ class XFlashExt(metaclass=LogBase):
return False, writedata
if self.xflash.writeflash(addr=partition.sector * self.mtk.daloader.daconfig.pagesize,
length=len(writedata),
filename=None, wdata=writedata, parttype="user", display=True):
filename="", wdata=writedata, parttype="user", display=True):
return True, "Successfully wrote seccfg."
return False, "Error on writing seccfg config to flash."