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/pins.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/pins.py')
-rw-r--r-- | klippy/pins.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/klippy/pins.py b/klippy/pins.py index ac8fd8bd..3d9d9ccf 100644 --- a/klippy/pins.py +++ b/klippy/pins.py @@ -247,5 +247,5 @@ class PrinterPins: raise error("Duplicate chip name '%s'" % (chip_name,)) self.chips[chip_name] = chip -def add_printer_objects(printer, config): - printer.add_object('pins', PrinterPins()) +def add_printer_objects(config): + config.get_printer().add_object('pins', PrinterPins()) |