aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorgcohen2015-01-06 00:41:25 -0800
committergcohen2015-01-06 00:41:25 -0800
commitb1c1ac7a3da71d2d9c91c2044a5038f54d9f22a5 (patch)
tree1102148916d20e470c90d9852d1800858913e5eb
parentb0e68515b4c08a76b331ad37231cd8dd28b9ea0e (diff)
downloadpubnub-python-b1c1ac7a3da71d2d9c91c2044a5038f54d9f22a5.tar.bz2
thread test
-rw-r--r--python/examples/futureHouse/futureHouse.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/python/examples/futureHouse/futureHouse.py b/python/examples/futureHouse/futureHouse.py
index 395b035..9aeb6cd 100644
--- a/python/examples/futureHouse/futureHouse.py
+++ b/python/examples/futureHouse/futureHouse.py
@@ -199,7 +199,8 @@ def startCycling():
# print str(x) + ": " + str(leds[x]['minPulseLength']) + " " + str(leds[x]['maxPulseLength']) + " " + str(leds[x]['waitFloor']) + " " + str(leds[x]['waitCeiling'])
# Change speed of continuous servo on channel O
try:
- thread.start_new_thread( cycleLEDs, (x,) )
+ t = thread.start_new_thread( cycleLEDs, (x,) )
+ print t.isAlive()
except:
print "Error: unable to start thread"