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/klippy.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'klippy/klippy.py') diff --git a/klippy/klippy.py b/klippy/klippy.py index 588666f6..03d71eff 100644 --- a/klippy/klippy.py +++ b/klippy/klippy.py @@ -213,11 +213,11 @@ class Printer: # Create printer components config = ConfigWrapper(self, fileconfig, 'printer') for m in [pins, heater, mcu]: - m.add_printer_objects(self, config) + m.add_printer_objects(config) for section in fileconfig.sections(): self.try_load_module(config, section) for m in [toolhead, extruder]: - m.add_printer_objects(self, config) + m.add_printer_objects(config) # Validate that there are no undefined parameters in the config file valid_sections = { s: 1 for s, o in self.all_config_options } for section_name in fileconfig.sections(): -- cgit v1.2.3-70-g09d2