mirror of
https://github.com/bkerler/mtkclient.git
synced 2024-11-14 19:25:05 -05:00
fix typo mistake
This commit is contained in:
parent
46e9de240d
commit
2d04f27e70
2 changed files with 2 additions and 2 deletions
|
@ -708,7 +708,7 @@ class DAXML(metaclass=LogBase):
|
||||||
self.error("Couldn't find item key")
|
self.error("Couldn't find item key")
|
||||||
return data
|
return data
|
||||||
|
|
||||||
def get_sys_property(self, key: int = "DA.SLA", length: int = 0x200000):
|
def get_sys_property(self, key: str = "DA.SLA", length: int = 0x200000):
|
||||||
self.send_command(self.Cmd.cmd_get_sys_property(key=key, length=length), noack=True)
|
self.send_command(self.Cmd.cmd_get_sys_property(key=key, length=length), noack=True)
|
||||||
cmd, result = self.get_command_result()
|
cmd, result = self.get_command_result()
|
||||||
if type(result) is not upfile:
|
if type(result) is not upfile:
|
||||||
|
|
|
@ -116,7 +116,7 @@ class Partition(metaclass=LogBase):
|
||||||
return data, guid_gpt
|
return data, guid_gpt
|
||||||
|
|
||||||
def get_backup_gpt(self, lun, gpt_num_part_entries, gpt_part_entry_size, gpt_part_entry_start_lba,
|
def get_backup_gpt(self, lun, gpt_num_part_entries, gpt_part_entry_size, gpt_part_entry_start_lba,
|
||||||
parttype="user") -> bytearray:
|
parttype="user") -> bytes:
|
||||||
data = self.readflash(addr=0, length=2 * self.config.pagesize, filename="", parttype=parttype, display=False)
|
data = self.readflash(addr=0, length=2 * self.config.pagesize, filename="", parttype=parttype, display=False)
|
||||||
if data == b"":
|
if data == b"":
|
||||||
return data
|
return data
|
||||||
|
|
Loading…
Reference in a new issue