aboutsummaryrefslogtreecommitdiffstats
path: root/klippy/cartesian.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/cartesian.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/cartesian.py')
-rw-r--r--klippy/cartesian.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/klippy/cartesian.py b/klippy/cartesian.py
index f0d2e258..edd7519b 100644
--- a/klippy/cartesian.py
+++ b/klippy/cartesian.py
@@ -11,7 +11,7 @@ StepList = (0, 1, 2)
class CartKinematics:
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']]
max_velocity, max_accel = toolhead.get_max_velocity()
self.max_z_velocity = config.getfloat(