Update dalegacy_lib.py

Add support for dram version 17
This commit is contained in:
Bjoern Kerler 2024-03-05 21:10:36 +01:00 committed by GitHub
parent f9fe6ca65c
commit 4eaa8e446e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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)