mirror of
https://github.com/bkerler/mtkclient.git
synced 2024-12-02 20:26:57 -05:00
Update dalegacy_lib.py
Add support for dram version 17
This commit is contained in:
parent
f9fe6ca65c
commit
4eaa8e446e
1 changed files with 1 additions and 1 deletions
|
@ -345,7 +345,7 @@ class DALegacy(metaclass=LogBase):
|
||||||
if ret == self.Rsp.ACK:
|
if ret == self.Rsp.ACK:
|
||||||
self.info("Sending dram info ...")
|
self.info("Sending dram info ...")
|
||||||
dramlength = len(self.daconfig.emi)
|
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
|
dramlength = unpack(">I", self.usbread(0x4))[0] # 0x000000BC
|
||||||
self.info("RAM-Length: " + hex(dramlength))
|
self.info("RAM-Length: " + hex(dramlength))
|
||||||
self.usbwrite(self.Rsp.ACK)
|
self.usbwrite(self.Rsp.ACK)
|
||||||
|
|
Loading…
Reference in a new issue