From 4a2eaf3a1b86d929a947df93bbfb85d20100bd1b Mon Sep 17 00:00:00 2001 From: berkaydeniz Date: Mon, 24 Sep 2018 22:14:03 -0400 Subject: [PATCH] the sleep period on read the hard coded sleep in SerialUsb read function is too long for time sensitive applications. Reducing it to a significantly smaller value. --- pyftdi/serialext/serialusb.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyftdi/serialext/serialusb.py b/pyftdi/serialext/serialusb.py index 356b95a6..c37ec78c 100644 --- a/pyftdi/serialext/serialusb.py +++ b/pyftdi/serialext/serialusb.py @@ -89,7 +89,7 @@ def read(self, size=1): ms = time.time()-start if ms > self._timeout: break - time.sleep(0.01) + time.sleep(0.0001) return data def write(self, data):