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/extruder.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/extruder.py')
-rw-r--r-- | klippy/extruder.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/klippy/extruder.py b/klippy/extruder.py index 609cabe6..8e564d62 100644 --- a/klippy/extruder.py +++ b/klippy/extruder.py @@ -231,7 +231,8 @@ class DummyExtruder: def lookahead(self, moves, flush_count, lazy): return flush_count -def add_printer_objects(printer, config): +def add_printer_objects(config): + printer = config.get_printer() for i in range(99): section = 'extruder%d' % (i,) if not config.has_section(section): |