From 79f31238b047eeacc2321625e642421a86c62e68 Mon Sep 17 00:00:00 2001 From: Kevin O'Connor Date: Tue, 4 Apr 2017 19:07:34 -0400 Subject: mcu: Don't export the commanded_position variable from mcu_stepper Now that the kinematic classes call the mcu_stepper with millimeters and seconds it is no longer necessary for them to directly access the stepper's position in absolute steps. Rename mcu_stepper.commanded_position to mcu_stepper._commanded_pos to make clear it is not a variable intended to be externally accessed. Signed-off-by: Kevin O'Connor --- klippy/delta.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'klippy/delta.py') diff --git a/klippy/delta.py b/klippy/delta.py index 9722ff3d..e54fe340 100644 --- a/klippy/delta.py +++ b/klippy/delta.py @@ -118,7 +118,7 @@ class DeltaKinematics: homing_state.home(list(coord), homepos, self.steppers , s.homing_speed/2.0, second_home=True) # Set final homed position - coord = [(s.mcu_stepper.commanded_position + s.get_homed_offset()) + coord = [(s.mcu_stepper.get_commanded_position() + s.get_homed_offset()) * s.step_dist for s in self.steppers] homing_state.set_homed_position(self._actuator_to_cartesian(coord)) -- cgit v1.2.3-70-g09d2