summaryrefslogtreecommitdiff
path: root/wim.py
diff options
context:
space:
mode:
authorTim Redfern <tim@eclectronics.org>2012-08-30 15:11:25 +0100
committerTim Redfern <tim@eclectronics.org>2012-08-30 15:11:25 +0100
commit27d9bbcd0586d76853f24d1eb73457f0f7478ff6 (patch)
tree33fcc3bb44d234d647989b253eefb9c19c2967b6 /wim.py
parent21a76352c4c276aac78136109edc6fae612e2b21 (diff)
bluetooth scanning switch
Diffstat (limited to 'wim.py')
-rwxr-xr-xwim.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/wim.py b/wim.py
index 67f79fb..ff437b2 100755
--- a/wim.py
+++ b/wim.py
@@ -80,7 +80,9 @@ from btscan import *
scan=scanner("127.0.0.1",5401,False)
for t in doc.bt.trigger:
scan.d.dm.triggers[t.id]=(t.command,t.param)
-scan.start()
+
+if len(scan.d.dm.triggers) >0:
+ scan.start()
logger=None