Speedup
This commit is contained in:
parent
0e7d0378d1
commit
69c42dabfb
|
@ -136,7 +136,7 @@ class HIDDongleHIDAPI(Dongle, DongleWait):
|
||||||
if not len(data):
|
if not len(data):
|
||||||
if time.time() - start > timeout:
|
if time.time() - start > timeout:
|
||||||
raise CommException("Timeout")
|
raise CommException("Timeout")
|
||||||
time.sleep(0.02)
|
time.sleep(0.0001)
|
||||||
return bytearray(data)
|
return bytearray(data)
|
||||||
|
|
||||||
def close(self):
|
def close(self):
|
||||||
|
|
Loading…
Reference in New Issue