aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorgcohen2014-12-30 16:17:30 -0800
committergcohen2014-12-30 16:17:30 -0800
commit2c35b50a351372e8d6f6ce4cb610f365e12d42dc (patch)
tree79a038344ba84b86455fb629e96623ab2b486276
parentb773e688abf3efc0a1d4155006733b15ca1f79d3 (diff)
downloadpubnub-python-2c35b50a351372e8d6f6ce4cb610f365e12d42dc.tar.bz2
refactoring open
-rw-r--r--python/examples/futureHouse/open.py5
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)