aboutsummaryrefslogtreecommitdiffstats
path: root/klippy/cartesian.py
diff options
context:
space:
mode:
authorKevin O'Connor <kevin@koconnor.net>2018-06-21 18:15:23 -0400
committerKevin O'Connor <kevin@koconnor.net>2018-06-22 14:09:01 -0400
commitb96542f0e5d2ea7c0fe025d5d4ffecfcb697e457 (patch)
tree0fa65d55e266ef416419a50df45b8fe93f45b61b /klippy/cartesian.py
parent9a97a348ae8ba765f8e6877b41eeb76805911863 (diff)
downloadkutter-b96542f0e5d2ea7c0fe025d5d4ffecfcb697e457.tar.gz
kutter-b96542f0e5d2ea7c0fe025d5d4ffecfcb697e457.tar.xz
kutter-b96542f0e5d2ea7c0fe025d5d4ffecfcb697e457.zip
stepper: Don't peak into PrinterStepper members
Add additional wrapper functions so that no outside callers need to peak into the member variables of PrinterStepper. 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 8bf2f609..3eea00e0 100644
--- a/klippy/cartesian.py
+++ b/klippy/cartesian.py
@@ -53,7 +53,7 @@ class CartKinematics:
return [self.steppers[2]]
return list(self.steppers)
def get_position(self):
- return [s.mcu_stepper.get_commanded_position() for s in self.steppers]
+ return [s.get_commanded_position() for s in self.steppers]
def set_position(self, newpos, homing_axes):
for i in StepList:
s = self.steppers[i]