duplicate_pin_override: Use config.getlist() for pins config option
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
parent
8f7eedd95e
commit
e784c19a96
|
@ -8,7 +8,7 @@ class PrinterDupPinOverride:
|
||||||
def __init__(self, config):
|
def __init__(self, config):
|
||||||
printer = config.get_printer()
|
printer = config.get_printer()
|
||||||
ppins = printer.lookup_object('pins')
|
ppins = printer.lookup_object('pins')
|
||||||
for pin_desc in config.get('pins').split(','):
|
for pin_desc in config.getlist('pins'):
|
||||||
ppins.allow_multi_use_pin(pin_desc)
|
ppins.allow_multi_use_pin(pin_desc)
|
||||||
|
|
||||||
def load_config(config):
|
def load_config(config):
|
||||||
|
|
Loading…
Reference in New Issue