mirror of
https://github.com/bkerler/mtkclient.git
synced 2024-11-14 19:25:05 -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)
|
self.ack_value(length)
|
||||||
cmd, result = self.get_command_result()
|
cmd, result = self.get_command_result()
|
||||||
if type(result) is DwnFile:
|
if type(result) is DwnFile:
|
||||||
|
if fh:
|
||||||
data = fh.read(length)
|
data = fh.read(length)
|
||||||
|
else:
|
||||||
|
data = wdata
|
||||||
if not self.upload(result, data, raw=True):
|
if not self.upload(result, data, raw=True):
|
||||||
self.error("Error on writing flash at 0x%08X" % addr)
|
self.error("Error on writing flash at 0x%08X" % addr)
|
||||||
return False
|
return False
|
||||||
|
|
Loading…
Reference in a new issue