aboutsummaryrefslogtreecommitdiffstats
path: root/klippy/toolhead.py
diff options
context:
space:
mode:
Diffstat (limited to 'klippy/toolhead.py')
-rw-r--r--klippy/toolhead.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/klippy/toolhead.py b/klippy/toolhead.py
index ba6319a1..6b0058d3 100644
--- a/klippy/toolhead.py
+++ b/klippy/toolhead.py
@@ -442,5 +442,5 @@ class ToolHead:
accel = gcode.get_float('S', params, above=0.)
self.max_accel = min(accel, self.config_max_accel)
-def add_printer_objects(printer, config):
- printer.add_object('toolhead', ToolHead(config))
+def add_printer_objects(config):
+ config.get_printer().add_object('toolhead', ToolHead(config))