static_digital_output: Use config.getlist() for pins config option

Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
Kevin O'Connor 2021-08-19 15:35:38 -04:00
parent 92e1821423
commit 31564f3b43
1 changed files with 1 additions and 1 deletions

View File

@ -8,7 +8,7 @@ class PrinterStaticDigitalOut:
def __init__(self, config):
printer = config.get_printer()
ppins = printer.lookup_object('pins')
pin_list = [pin.strip() for pin in config.get('pins').split(',')]
pin_list = config.getlist('pins')
for pin_desc in pin_list:
mcu_pin = ppins.setup_pin('digital_out', pin_desc)
mcu_pin.setup_start_value(1, 1, True)