aboutsummaryrefslogtreecommitdiffstats
path: root/klippy
diff options
context:
space:
mode:
authorKevin O'Connor <kevin@koconnor.net>2018-06-22 13:20:47 -0400
committerKevin O'Connor <kevin@koconnor.net>2018-06-22 14:09:01 -0400
commit4e01ab4ef0ab6b2b46076b0fccdeb6bf3bb74c9c (patch)
tree81ada9d2ac81ba77659242ba4426af59677213f8 /klippy
parent13acdf7832518d5b1133bccf23a1071aaade53df (diff)
downloadkutter-4e01ab4ef0ab6b2b46076b0fccdeb6bf3bb74c9c.tar.gz
kutter-4e01ab4ef0ab6b2b46076b0fccdeb6bf3bb74c9c.tar.xz
kutter-4e01ab4ef0ab6b2b46076b0fccdeb6bf3bb74c9c.zip
corexy: Remove the unnecessary StepList constant
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'klippy')
-rw-r--r--klippy/corexy.py8
1 files changed, 3 insertions, 5 deletions
diff --git a/klippy/corexy.py b/klippy/corexy.py
index 511e8fe3..07330641 100644
--- a/klippy/corexy.py
+++ b/klippy/corexy.py
@@ -6,8 +6,6 @@
import logging, math
import stepper, homing, chelper
-StepList = (0, 1, 2)
-
class CoreXYKinematics:
def __init__(self, toolhead, config):
self.rails = [ stepper.PrinterRail(config.getsection('stepper_x')),
@@ -99,12 +97,12 @@ class CoreXYKinematics:
if move.axes_d[2]:
self.rails[2].motor_enable(print_time, 1)
need_motor_enable = False
- for i in StepList:
- need_motor_enable |= not self.rails[i].is_motor_enabled()
+ for rail in self.rails:
+ need_motor_enable |= not rail.is_motor_enabled()
self.need_motor_enable = need_motor_enable
def _check_endstops(self, move):
end_pos = move.end_pos
- for i in StepList:
+ for i in (0, 1, 2):
if (move.axes_d[i]
and (end_pos[i] < self.limits[i][0]
or end_pos[i] > self.limits[i][1])):