diff --git a/mtkclient/Library/utils.py b/mtkclient/Library/utils.py index 8f8e646..ecfcb1d 100755 --- a/mtkclient/Library/utils.py +++ b/mtkclient/Library/utils.py @@ -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. """ diff --git a/mtkclient/Tools/brom_to_offs b/mtkclient/Tools/brom_to_offs index 79af0ea..03e798f 100755 --- a/mtkclient/Tools/brom_to_offs +++ b/mtkclient/Tools/brom_to_offs @@ -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("> 16) & 0xFFFFF) << 16) @@ -321,7 +320,6 @@ def main(): unpack("