mirror of
https://github.com/bkerler/edl.git
synced 2024-11-28 02:15:40 -05:00
Fix edl issues with sdm662
This commit is contained in:
parent
859dcb45f4
commit
652e6f7df2
2 changed files with 3 additions and 1 deletions
2
edl
2
edl
|
@ -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"]
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue