Skip to content

Commit

Permalink
Fix result wrong message on read flash
Browse files Browse the repository at this point in the history
  • Loading branch information
bkerler committed Jun 14, 2024
1 parent 00715c4 commit eb6755e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mtkclient/Library/DA/mtk_da_handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -296,7 +296,7 @@ def da_rf(self, filename, parttype):
length = self.mtk.daloader.daconfig.flashsize
print(f"Dumping sector 0 with flash size {hex(length)} as {filename}.")
sys.stdout.flush()
if self.mtk.daloader.readflash(addr=0, length=length, filename=filename, parttype=parttype) == b"ACK":
if self.mtk.daloader.readflash(addr=0, length=length, filename=filename, parttype=parttype):
print(f"Dumped sector 0 with flash size {hex(length)} as {filename}.")
else:
print(f"Failed to dump sector 0 with flash size {hex(length)} as {filename}.")
Expand Down

0 comments on commit eb6755e

Please sign in to comment.