diff options
author | Kevin O'Connor <kevin@koconnor.net> | 2017-10-29 10:58:04 -0400 |
---|---|---|
committer | Kevin O'Connor <kevin@koconnor.net> | 2017-11-18 17:29:22 -0500 |
commit | aaeda540b6cc321e04f4466f0fb518eeb93fcaa1 (patch) | |
tree | e01e294a83e3a1bf03e9feb0d33f74fdea6b181f /klippy/corexy.py | |
parent | fda988889b7cee2b95b35d06e15b5ecb3ad92bbb (diff) | |
download | kutter-aaeda540b6cc321e04f4466f0fb518eeb93fcaa1.tar.gz kutter-aaeda540b6cc321e04f4466f0fb518eeb93fcaa1.tar.xz kutter-aaeda540b6cc321e04f4466f0fb518eeb93fcaa1.zip |
stepper: Calculate the stepper name directly from the config section
There is no need to pass the name to the PrinterStepper class as it
can determine the name itself.
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'klippy/corexy.py')
-rw-r--r-- | klippy/corexy.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/klippy/corexy.py b/klippy/corexy.py index 286811d9..561def5f 100644 --- a/klippy/corexy.py +++ b/klippy/corexy.py @@ -11,7 +11,7 @@ StepList = (0, 1, 2) class CoreXYKinematics: def __init__(self, toolhead, printer, config): self.steppers = [stepper.PrinterHomingStepper( - printer, config.getsection('stepper_' + n), n) + printer, config.getsection('stepper_' + n)) for n in ['x', 'y', 'z']] self.steppers[0].mcu_endstop.add_stepper(self.steppers[1].mcu_stepper) self.steppers[1].mcu_endstop.add_stepper(self.steppers[0].mcu_stepper) |