slightly reduce sleep timings when waiting for reply

This commit is contained in:
Daniel Pavel 2013-05-23 04:59:16 +03:00
parent 48b176f49a
commit 3873d7099c
1 changed files with 2 additions and 2 deletions

View File

@ -216,10 +216,10 @@ def main():
rlist, wlist, xlist = _select([handle], [], [], 1) rlist, wlist, xlist = _select([handle], [], [], 1)
if data[1:2] == b'\xFF': if data[1:2] == b'\xFF':
# the receiver will reply very fast, in a few milliseconds # the receiver will reply very fast, in a few milliseconds
time.sleep(0.100) time.sleep(0.010)
else: else:
# the devices might reply quite slow # the devices might reply quite slow
time.sleep(1) time.sleep(0.700)
except EOFError: except EOFError:
if interactive: if interactive:
print ("") print ("")