mirror of
https://github.com/bkerler/mtkclient.git
synced 2024-11-14 11:14:56 -05:00
This commit is contained in:
parent
7b30c5293c
commit
127c353b39
1 changed files with 4 additions and 1 deletions
|
@ -967,7 +967,10 @@ class DAXML(metaclass=LogBase):
|
|||
self.ack_value(length)
|
||||
cmd, result = self.get_command_result()
|
||||
if type(result) is DwnFile:
|
||||
data = fh.read(length)
|
||||
if fh:
|
||||
data = fh.read(length)
|
||||
else:
|
||||
data = wdata
|
||||
if not self.upload(result, data, raw=True):
|
||||
self.error("Error on writing flash at 0x%08X" % addr)
|
||||
return False
|
||||
|
|
Loading…
Reference in a new issue