diff options
| author | gcohen | 2014-12-30 16:17:30 -0800 | 
|---|---|---|
| committer | gcohen | 2014-12-30 16:17:30 -0800 | 
| commit | 2c35b50a351372e8d6f6ce4cb610f365e12d42dc (patch) | |
| tree | 79a038344ba84b86455fb629e96623ab2b486276 /python/examples/futureHouse | |
| parent | b773e688abf3efc0a1d4155006733b15ca1f79d3 (diff) | |
| download | pubnub-python-2c35b50a351372e8d6f6ce4cb610f365e12d42dc.tar.bz2 | |
refactoring open
Diffstat (limited to 'python/examples/futureHouse')
| -rw-r--r-- | python/examples/futureHouse/open.py | 5 | 
1 files changed, 1 insertions, 4 deletions
| diff --git a/python/examples/futureHouse/open.py b/python/examples/futureHouse/open.py index 256b73e..f6552bb 100644 --- a/python/examples/futureHouse/open.py +++ b/python/examples/futureHouse/open.py @@ -31,7 +31,7 @@ maxSteps = 1600  completedSteps = 0  # Start main loop -while 1==1: +while completedSteps != maxSteps:    for pin in range(0, 4):      xpin = stepPins[pin] @@ -54,7 +54,4 @@ while 1==1:    if (stepCounter<0):      stepCounter = stepCount -  if (maxSteps == completedSteps): -   sys.exit() -    time.sleep(waitTime) | 
