Update firehose.py

Fix issue with connect and usb overflowing
This commit is contained in:
Bjoern Kerler 2023-04-18 17:20:18 +02:00 committed by GitHub
parent 5f92658a81
commit 033990eb9a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1102,7 +1102,7 @@ class firehose(metaclass=LogBase):
info = [] info = []
while v != b'': while v != b'':
try: try:
v = self.cdc.read(timeout=None,length=0x80) v = self.cdc.read(timeout=None)
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)