Skip to content

Commit fd76d81

Browse files
committed
lint
1 parent 4bda015 commit fd76d81

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

examples/DualStepperTest.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -36,33 +36,33 @@ def stepper_worker(stepper, numsteps, direction, style):
3636
randomdir = random.randint(0, 1)
3737
print("Stepper 1")
3838
if randomdir == 0:
39-
direction = STEPPER.FORWARD
39+
move_dir = STEPPER.FORWARD
4040
print("forward")
4141
else:
42-
direction = STEPPER.BACKWARD
42+
move_dir = STEPPER.BACKWARD
4343
print("backward")
4444
randomsteps = random.randint(10,50)
4545
print("%d steps" % randomsteps)
4646
st1 = threading.Thread(target=stepper_worker, args=(kit.stepper1,
4747
randomsteps,
48-
direction,
48+
move_dir,
4949
stepstyles[random.randint(0,3)],))
5050
st1.start()
5151

5252
if not st2.isAlive():
5353
print("Stepper 2")
5454
randomdir = random.randint(0, 1)
5555
if randomdir == 0:
56-
direction = STEPPER.FORWARD
56+
move_dir = STEPPER.FORWARD
5757
print("forward")
5858
else:
59-
direction = STEPPER.BACKWARD
59+
move_dir = STEPPER.BACKWARD
6060
print("backward")
6161
randomsteps = random.randint(10,50)
6262
print("%d steps" % randomsteps)
6363
st2 = threading.Thread(target=stepper_worker, args=(kit.stepper2,
6464
randomsteps,
65-
direction,
65+
move_dir,
6666
stepstyles[random.randint(0,3)],))
6767
st2.start()
6868

0 commit comments

Comments
 (0)