diff options
author | Kevin O'Connor <kevin@koconnor.net> | 2018-07-12 22:26:32 -0400 |
---|---|---|
committer | Kevin O'Connor <kevin@koconnor.net> | 2018-07-12 22:26:32 -0400 |
commit | 7d897d84d773654a8beaf56012e0bf8285db8206 (patch) | |
tree | bf6a9d6116e7b6e5905126e166a4cd3a3e967635 /klippy/klippy.py | |
parent | 5cdba1fda88cedfa1226ddeedef09a0df9a5e53f (diff) | |
download | kutter-7d897d84d773654a8beaf56012e0bf8285db8206.tar.gz kutter-7d897d84d773654a8beaf56012e0bf8285db8206.tar.xz kutter-7d897d84d773654a8beaf56012e0bf8285db8206.zip |
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 <kevin@koconnor.net>
Diffstat (limited to 'klippy/klippy.py')
-rw-r--r-- | klippy/klippy.py | 4 |
1 files changed, 2 insertions, 2 deletions
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(): |