mirror of
https://github.com/andreili/klipper.git
synced 2025-09-19 19:34:42 +02:00
extruder_stepper: define missing public methods methods
Other modules could access the extruderN by the printer lookup_object(). That would return this wrapper class. Specifically, filament_motion_sensor will. They can try to access missing methods and klippy would crash. Signed-off-by: Timofey Titovets <nefelim4ag@gmail.com>
This commit is contained in:
parent
8a833175a5
commit
93ea9ddfa9
@ -15,6 +15,8 @@ class PrinterExtruderStepper:
|
|||||||
self.handle_connect)
|
self.handle_connect)
|
||||||
def handle_connect(self):
|
def handle_connect(self):
|
||||||
self.extruder_stepper.sync_to_extruder(self.extruder_name)
|
self.extruder_stepper.sync_to_extruder(self.extruder_name)
|
||||||
|
def find_past_position(self, print_time):
|
||||||
|
return self.extruder_stepper.find_past_position(print_time)
|
||||||
def get_status(self, eventtime):
|
def get_status(self, eventtime):
|
||||||
return self.extruder_stepper.get_status(eventtime)
|
return self.extruder_stepper.get_status(eventtime)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user