Update xflash_lib.py

Fix improper readflash status on xflash
This commit is contained in:
Bjoern Kerler 2023-12-01 19:33:00 +01:00 committed by GitHub
parent 6127b1ecb4
commit 44c750ac5b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -795,10 +795,10 @@ class DAXFlash(metaclass=LogBase):
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: