Skip to content

Commit d2abcbf

Browse files
authored
Merge pull request #3006 from brentru/fix-stepper-guide
Fix - Adafruit IO Stepper Control Guide
2 parents 8380993 + 3548bd1 commit d2abcbf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Adafruit_IO_Stepper_Control/code.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ def stepper_worker(stepper, numsteps, direction, stepper_name, style, show_steps
9999
time.sleep(30)
100100

101101
# Stepper 1
102-
if not st1.isAlive() and int(stepper_start.value):
102+
if not st1.is_alive() and int(stepper_start.value):
103103
stepper_1_steps = aio.receive(feed_step_1_steps.key)
104104
stepper_1_steps = int(stepper_1_steps.value)
105105
if stepper_1_steps > 0: # stepper slider is set
@@ -125,7 +125,7 @@ def stepper_worker(stepper, numsteps, direction, stepper_name, style, show_steps
125125
st1.start()
126126

127127
# Stepper 2
128-
if not st2.isAlive() and int(stepper_start.value):
128+
if not st2.is_alive() and int(stepper_start.value):
129129
stepper_2_steps = aio.receive(feed_step_2_steps.key)
130130
stepper_2_steps = int(stepper_2_steps.value)
131131
if stepper_2_steps > 0: # stepper slider is set

0 commit comments

Comments
 (0)