diff options
Diffstat (limited to 'klippy/extras/duplicate_pin_override.py')
-rw-r--r-- | klippy/extras/duplicate_pin_override.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/klippy/extras/duplicate_pin_override.py b/klippy/extras/duplicate_pin_override.py index bc61c3bf..2cd63363 100644 --- a/klippy/extras/duplicate_pin_override.py +++ b/klippy/extras/duplicate_pin_override.py @@ -4,12 +4,14 @@ # # This file may be distributed under the terms of the GNU GPLv3 license. + class PrinterDupPinOverride: def __init__(self, config): printer = config.get_printer() - ppins = printer.lookup_object('pins') - for pin_desc in config.getlist('pins'): + ppins = printer.lookup_object("pins") + for pin_desc in config.getlist("pins"): ppins.allow_multi_use_pin(pin_desc) + def load_config(config): return PrinterDupPinOverride(config) |