mirror of
https://github.com/bkerler/mtkclient.git
synced 2024-12-02 20:26:57 -05:00
fix type mistake
This commit is contained in:
parent
a0d25a39fa
commit
46e9de240d
2 changed files with 1 additions and 3 deletions
|
@ -759,7 +759,7 @@ class patchtools:
|
|||
return None
|
||||
|
||||
|
||||
def read_object(data: object, definition: object) -> object:
|
||||
def read_object(data: object, definition: object) -> dict:
|
||||
"""
|
||||
Unpacks a structure using the given data and definition.
|
||||
"""
|
||||
|
|
|
@ -65,7 +65,6 @@ def main():
|
|||
mpos = find_binary(data, b"\xA0\x0A\x50\x05.\x00\x00\x00", 0)
|
||||
usbdl_get_dword = None
|
||||
usbdl_put_dword = None
|
||||
usbdl_put_word = None
|
||||
if mpos is not None:
|
||||
usbdl_put_data = unpack("<I", data[mpos - 0xC:mpos - 0xC + 4])[0]
|
||||
base = (((usbdl_put_data >> 16) & 0xFFFFF) << 16)
|
||||
|
@ -321,7 +320,6 @@ def main():
|
|||
unpack("<H", data[coffs:coffs + 2])[0])
|
||||
except:
|
||||
print("Err:" + sys.argv[1])
|
||||
send_ptr_offset = offset
|
||||
send_ptr = unpack("<I", data[offset:offset + 4])[0] + 8
|
||||
send_ptr_offset = base | offset
|
||||
ctrl_addr = None
|
||||
|
|
Loading…
Reference in a new issue