Merge pull request #1190 from a10kiloham/patch-1
Some checks failed
Python application / Test (push) Has been cancelled

Fix expected type of default parameter for filename
This commit is contained in:
Bjoern Kerler 2024-09-07 11:44:46 +02:00 committed by GitHub
commit af97fe658e
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."