mirror of
https://github.com/Klipper3d/klipper.git
synced 2025-07-18 20:28:10 -06:00
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>
This commit is contained in:
parent
9a97a348ae
commit
b96542f0e5
7 changed files with 26 additions and 24 deletions
|
@ -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]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue