aboutsummaryrefslogtreecommitdiffstats
path: root/klippy/extras/extruder_stepper.py
diff options
context:
space:
mode:
Diffstat (limited to 'klippy/extras/extruder_stepper.py')
-rw-r--r--klippy/extras/extruder_stepper.py9
1 files changed, 6 insertions, 3 deletions
diff --git a/klippy/extras/extruder_stepper.py b/klippy/extras/extruder_stepper.py
index 4ac5289f..b5feddf1 100644
--- a/klippy/extras/extruder_stepper.py
+++ b/klippy/extras/extruder_stepper.py
@@ -6,17 +6,20 @@
import logging
from kinematics import extruder
+
class PrinterExtruderStepper:
def __init__(self, config):
self.printer = config.get_printer()
self.extruder_stepper = extruder.ExtruderStepper(config)
- self.extruder_name = config.get('extruder')
- self.printer.register_event_handler("klippy:connect",
- self.handle_connect)
+ self.extruder_name = config.get("extruder")
+ self.printer.register_event_handler("klippy:connect", self.handle_connect)
+
def handle_connect(self):
self.extruder_stepper.sync_to_extruder(self.extruder_name)
+
def get_status(self, eventtime):
return self.extruder_stepper.get_status(eventtime)
+
def load_config_prefix(config):
return PrinterExtruderStepper(config)