Merge pull request #11 from maoyun2019/main

Fix daconfig of rl
This commit is contained in:
Bjoern Kerler 2021-08-07 14:43:26 +02:00 committed by GitHub
commit 1c2f4d3a61
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

2
mtk
View file

@ -770,7 +770,7 @@ class Main(metaclass=LogBase):
self.info(f"Dumping partition {str(partition.name)} with sector count {str(partition.sectors)} " +
f"as {filename}.")
mtk.daloader.readflash(addr=partition.sector * mtk.daloader.daconfig.pagesize,
length=partition.sectors * mtk.daconfig.pagesize, filename=filename,
length=partition.sectors * mtk.daloader.daconfig.pagesize, filename=filename,
parttype=parttype)
mtk.daloader.close()
self.close()