aboutsummaryrefslogtreecommitdiffstats
path: root/klippy/delta.py
diff options
context:
space:
mode:
authorKevin O'Connor <kevin@koconnor.net>2017-10-29 10:58:04 -0400
committerKevin O'Connor <kevin@koconnor.net>2017-11-18 17:29:22 -0500
commitaaeda540b6cc321e04f4466f0fb518eeb93fcaa1 (patch)
treee01e294a83e3a1bf03e9feb0d33f74fdea6b181f /klippy/delta.py
parentfda988889b7cee2b95b35d06e15b5ecb3ad92bbb (diff)
downloadkutter-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/delta.py')
-rw-r--r--klippy/delta.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/klippy/delta.py b/klippy/delta.py
index 8eddc3c9..6e04655e 100644
--- a/klippy/delta.py
+++ b/klippy/delta.py
@@ -14,7 +14,7 @@ SLOW_RATIO = 3.
class DeltaKinematics:
def __init__(self, toolhead, printer, config):
self.steppers = [stepper.PrinterHomingStepper(
- printer, config.getsection('stepper_' + n), n)
+ printer, config.getsection('stepper_' + n))
for n in ['a', 'b', 'c']]
self.need_motor_enable = self.need_home = True
radius = config.getfloat('delta_radius', above=0.)