From 31564f3b43c96d3ab35ac22259b233a702fa09eb Mon Sep 17 00:00:00 2001 From: Kevin O'Connor Date: Thu, 19 Aug 2021 15:35:38 -0400 Subject: [PATCH] static_digital_output: Use config.getlist() for pins config option Signed-off-by: Kevin O'Connor --- klippy/extras/static_digital_output.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/klippy/extras/static_digital_output.py b/klippy/extras/static_digital_output.py index bd494f6f..ce209372 100644 --- a/klippy/extras/static_digital_output.py +++ b/klippy/extras/static_digital_output.py @@ -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)