From 7d897d84d773654a8beaf56012e0bf8285db8206 Mon Sep 17 00:00:00 2001 From: Kevin O'Connor Date: Thu, 12 Jul 2018 22:26:32 -0400 Subject: klippy: No need to pass printer reference to add_printer_objects() The config reference already stores a reference to the printer object. Signed-off-by: Kevin O'Connor --- klippy/toolhead.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'klippy/toolhead.py') 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)) -- cgit v1.2.3-70-g09d2