From 3873d7099c5cad43ef53dec32a7cd5752a7597aa Mon Sep 17 00:00:00 2001 From: Daniel Pavel Date: Thu, 23 May 2013 04:59:16 +0300 Subject: [PATCH] slightly reduce sleep timings when waiting for reply --- lib/hidapi/hidconsole.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/hidapi/hidconsole.py b/lib/hidapi/hidconsole.py index aed6fd7c..55cef9c3 100644 --- a/lib/hidapi/hidconsole.py +++ b/lib/hidapi/hidconsole.py @@ -216,10 +216,10 @@ def main(): rlist, wlist, xlist = _select([handle], [], [], 1) if data[1:2] == b'\xFF': # the receiver will reply very fast, in a few milliseconds - time.sleep(0.100) + time.sleep(0.010) else: # the devices might reply quite slow - time.sleep(1) + time.sleep(0.700) except EOFError: if interactive: print ("")