diff options
author | Kevin O'Connor <kevin@koconnor.net> | 2018-06-22 13:21:03 -0400 |
---|---|---|
committer | Kevin O'Connor <kevin@koconnor.net> | 2018-06-22 14:09:01 -0400 |
commit | 77a2c95b5e00b0d80f75153f30203c6e10a5230f (patch) | |
tree | 6fcfd11f2c976506d89e6f6b39cb3e9200481977 | |
parent | 4e01ab4ef0ab6b2b46076b0fccdeb6bf3bb74c9c (diff) | |
download | kutter-77a2c95b5e00b0d80f75153f30203c6e10a5230f.tar.gz kutter-77a2c95b5e00b0d80f75153f30203c6e10a5230f.tar.xz kutter-77a2c95b5e00b0d80f75153f30203c6e10a5230f.zip |
delta: Remove the unnecessary StepList constant
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
-rw-r--r-- | klippy/delta.py | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/klippy/delta.py b/klippy/delta.py index d80959b5..08fc91f6 100644 --- a/klippy/delta.py +++ b/klippy/delta.py @@ -6,8 +6,6 @@ import math, logging import stepper, homing, chelper -StepList = (0, 1, 2) - # Slow moves once the ratio of tower to XY movement exceeds SLOW_RATIO SLOW_RATIO = 3. @@ -96,7 +94,7 @@ class DeltaKinematics: for rail in self.rails: rail.set_position(newpos) self.limit_xy2 = -1. - if tuple(homing_axes) == StepList: + if tuple(homing_axes) == (0, 1, 2): self.need_home = False def home(self, homing_state): # All axes are homed simultaneously @@ -126,8 +124,8 @@ class DeltaKinematics: rail.motor_enable(print_time, 0) self.need_motor_enable = self.need_home = True def _check_motor_enable(self, print_time): - for i in StepList: - self.rails[i].motor_enable(print_time, 1) + for rail in self.rails: + rail.motor_enable(print_time, 1) self.need_motor_enable = False def check_move(self, move): end_pos = move.end_pos |