From 38643f52c97dc85bcc2bf020927852f9cfe9fff6 Mon Sep 17 00:00:00 2001 From: Kevin O'Connor Date: Tue, 7 Nov 2017 12:29:51 -0500 Subject: stepper: Add get_endstops() / set_position wrappers Add wrappers around mcu_endstop and mcu_stepper so that the kinematic classes do not need to directly access these low-level classes. 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 685e0c7e..4907b6d1 100644 --- a/klippy/cartesian.py +++ b/klippy/cartesian.py @@ -28,7 +28,7 @@ class CartKinematics: min(max_halt_velocity, self.max_z_velocity), max_accel) def set_position(self, newpos): for i in StepList: - self.steppers[i].mcu_stepper.set_position(newpos[i]) + self.steppers[i].set_position(newpos[i]) def home(self, homing_state): # Each axis is homed independently and in order for axis in homing_state.get_axes(): -- cgit v1.2.3-70-g09d2