Fix edl issues with sdm662

This commit is contained in:
info@revskills.de 2023-04-07 15:29:11 +02:00
parent 859dcb45f4
commit 652e6f7df2
2 changed files with 3 additions and 1 deletions

2
edl
View file

@ -252,6 +252,7 @@ class main(metaclass=LogBase):
if re.findall(r'QCUSB', str(proper_driver)):
self.warning(f'Please first install libusb_win32 driver from Zadig')
mode = ""
loop = 0
vid = int(args["--vid"], 16)
pid = int(args["--pid"], 16)
@ -295,6 +296,7 @@ class main(metaclass=LogBase):
self.sahara.programmer = loader
self.info("Waiting for the device")
resp = None
self.cdc.timeout = 1500
conninfo = self.doconnect(loop)
mode = conninfo["mode"]

View file

@ -1082,7 +1082,7 @@ class firehose(metaclass=LogBase):
info = []
while v != b'':
try:
v = self.cdc.read(timeout=None)
v = self.cdc.read(timeout=None,length=0x80)
if (b"response" in v and b"</data>" in v) or v == b'':
break
data = self.xml.getlog(v)