From aaeda540b6cc321e04f4466f0fb518eeb93fcaa1 Mon Sep 17 00:00:00 2001 From: Kevin O'Connor Date: Sun, 29 Oct 2017 10:58:04 -0400 Subject: 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 --- klippy/cartesian.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'klippy/cartesian.py') 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( -- cgit v1.2.3-70-g09d2