Skip to content

Commit

Permalink
Update xflash_lib.py
Browse files Browse the repository at this point in the history
Fix improper readflash status on xflash
  • Loading branch information
bkerler authored Dec 1, 2023
1 parent 6127b1e commit 44c750a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mtkclient/Library/DA/xflash/xflash_lib.py
Original file line number Diff line number Diff line change
Expand Up @@ -795,10 +795,10 @@ def readflash(self, addr, length, filename, parttype=None, display=True) -> byte
self.mtk.daloader.progress.show_progress("Read", total, total, display)
rq.put(None)
worker.join(60)
return b""
return True
rq.put(None)
worker.join(60)
return bytearray()
return False
else:
buffer = bytearray()
while length > 0:
Expand Down

0 comments on commit 44c750a

Please sign in to comment.