diff options
| author | gcohen | 2015-01-06 00:41:25 -0800 |
|---|---|---|
| committer | gcohen | 2015-01-06 00:41:25 -0800 |
| commit | b1c1ac7a3da71d2d9c91c2044a5038f54d9f22a5 (patch) | |
| tree | 1102148916d20e470c90d9852d1800858913e5eb | |
| parent | b0e68515b4c08a76b331ad37231cd8dd28b9ea0e (diff) | |
| download | pubnub-python-b1c1ac7a3da71d2d9c91c2044a5038f54d9f22a5.tar.bz2 | |
thread test
| -rw-r--r-- | python/examples/futureHouse/futureHouse.py | 3 |
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" |
