Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions mtkclient/Library/DA/mtk_da_handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -347,11 +347,13 @@ def da_read(self, partitionname, parttype, filename, offset: int = None, length:
break
if rpartition is not None:
if length is None:
length = rpartition.sectors * self.config.pagesize
readlength = rpartition.sectors * self.config.pagesize
else:
readlength = length
if display:
self.info(f'Dumping partition "{rpartition.name}"')
if self.mtk.daloader.readflash(addr=(rpartition.sector * self.config.pagesize) + offset,
length=length,
length=readlength,
filename=partfilename, parttype=parttype, display=display):
if display:
self.info(f"Dumped sector {str(rpartition.sector)} with sector count " +
Expand Down