From 4eaa8e446e284705e1f74c807e227d3649f40845 Mon Sep 17 00:00:00 2001 From: Bjoern Kerler Date: Tue, 5 Mar 2024 21:10:36 +0100 Subject: [PATCH] Update dalegacy_lib.py Add support for dram version 17 --- mtkclient/Library/DA/legacy/dalegacy_lib.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mtkclient/Library/DA/legacy/dalegacy_lib.py b/mtkclient/Library/DA/legacy/dalegacy_lib.py index d062595..d9b81e6 100755 --- a/mtkclient/Library/DA/legacy/dalegacy_lib.py +++ b/mtkclient/Library/DA/legacy/dalegacy_lib.py @@ -345,7 +345,7 @@ class DALegacy(metaclass=LogBase): if ret == self.Rsp.ACK: self.info("Sending dram info ...") dramlength = len(self.daconfig.emi) - if self.daconfig.emiver in [0xF, 0x10, 0x14, 0x15]: + if self.daconfig.emiver in [0xF, 0x10, 0x14, 0x15, 0x17]: dramlength = unpack(">I", self.usbread(0x4))[0] # 0x000000BC self.info("RAM-Length: " + hex(dramlength)) self.usbwrite(self.Rsp.ACK)