aboutsummaryrefslogtreecommitdiffstats
path: root/python/examples/futureHouse
diff options
context:
space:
mode:
Diffstat (limited to 'python/examples/futureHouse')
-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)