From a82a9c16adf85c962d4f728b709f2dd37f7ce0e9 Mon Sep 17 00:00:00 2001 From: Stefan Beller Date: Mon, 21 May 2012 18:33:15 +0200 Subject: [PATCH] Add latencies to communication script on Host side for testing. and it works. --- host/testcommunication.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/host/testcommunication.py b/host/testcommunication.py index 0239acb..61bc09e 100644 --- a/host/testcommunication.py +++ b/host/testcommunication.py @@ -1,9 +1,7 @@ #!/usr/bin/env python -#import usb.core -#import usb.util - import usb +import time asp = None busses = usb.busses() @@ -35,6 +33,7 @@ try: enableSerialMode(handle) while True: data = getData(handle) + time.sleep(0.01) if len(data): print data