mirror of
https://github.com/bkerler/edl.git
synced 2025-03-21 04:30:02 -04: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)):
|
if re.findall(r'QCUSB', str(proper_driver)):
|
||||||
self.warning(f'Please first install libusb_win32 driver from Zadig')
|
self.warning(f'Please first install libusb_win32 driver from Zadig')
|
||||||
|
|
||||||
|
mode = ""
|
||||||
loop = 0
|
loop = 0
|
||||||
vid = int(args["--vid"], 16)
|
vid = int(args["--vid"], 16)
|
||||||
pid = int(args["--pid"], 16)
|
pid = int(args["--pid"], 16)
|
||||||
|
@ -295,6 +296,7 @@ class main(metaclass=LogBase):
|
||||||
self.sahara.programmer = loader
|
self.sahara.programmer = loader
|
||||||
|
|
||||||
self.info("Waiting for the device")
|
self.info("Waiting for the device")
|
||||||
|
resp = None
|
||||||
self.cdc.timeout = 1500
|
self.cdc.timeout = 1500
|
||||||
conninfo = self.doconnect(loop)
|
conninfo = self.doconnect(loop)
|
||||||
mode = conninfo["mode"]
|
mode = conninfo["mode"]
|
||||||
|
|
|
@ -1082,7 +1082,7 @@ class firehose(metaclass=LogBase):
|
||||||
info = []
|
info = []
|
||||||
while v != b'':
|
while v != b'':
|
||||||
try:
|
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'':
|
if (b"response" in v and b"</data>" in v) or v == b'':
|
||||||
break
|
break
|
||||||
data = self.xml.getlog(v)
|
data = self.xml.getlog(v)
|
||||||
|
|
Loading…
Reference in a new issue