mirror of
https://github.com/Klipper3d/klipper.git
synced 2025-08-10 15:25:20 -06:00
extruder_stepper: Don't directly access extruder member variables
Rework extruder.get_trapq() into extruder.sync_stepper() so that extruder_stepper.py does not need to directly access the extruder internals. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
parent
518fe023b4
commit
739e6e7396
2 changed files with 12 additions and 15 deletions
|
@ -98,8 +98,10 @@ class PrinterExtruder:
|
|||
return self.name
|
||||
def get_heater(self):
|
||||
return self.heater
|
||||
def get_trapq(self):
|
||||
return self.trapq
|
||||
def sync_stepper(self, stepper):
|
||||
epos = self.stepper.get_commanded_position()
|
||||
stepper.set_position([epos, 0., 0.])
|
||||
stepper.set_trapq(self.trapq)
|
||||
def stats(self, eventtime):
|
||||
return self.heater.stats(eventtime)
|
||||
def check_move(self, move):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue