From 903c973ef50d63eaf4e92cc0c3253534628d6a6d Mon Sep 17 00:00:00 2001 From: Tim Redfern Date: Wed, 5 Sep 2012 17:29:15 +0100 Subject: stop slowdown with GUI --- wim.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'wim.py') diff --git a/wim.py b/wim.py index ec77a47..d61cb7c 100755 --- a/wim.py +++ b/wim.py @@ -78,6 +78,7 @@ except: from btscan import * scan=scanner("127.0.0.1",5401,False) + try: for t in doc.bt.trigger: scan.d.dm.triggers[t.id]=(t.command,t.param) @@ -144,5 +145,5 @@ while True: print "wim: sending:",str(r[0]),str(r[1]) #pd needs \n at end of message outsock.sendto( str(r[0])+' '+str(r[1])+'\n', (PD_IP, PD_PORT) ) - time.sleep(1.0) + time.sleep(0.1) -- cgit v1.2.3