From 0ba5819370d4d6c3fd105f3aaf8c29f7d775e395 Mon Sep 17 00:00:00 2001 From: Kevin O'Connor Date: Sat, 26 Oct 2019 11:33:30 -0400 Subject: [PATCH] tmc_uart: Don't try to configure analog pins to -1 value Commit 6f5f2a3b incorrectly altered the analog mux pin config. Signed-off-by: Kevin O'Connor --- klippy/extras/tmc_uart.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/klippy/extras/tmc_uart.py b/klippy/extras/tmc_uart.py index b1201eaf..7eab1240 100644 --- a/klippy/extras/tmc_uart.py +++ b/klippy/extras/tmc_uart.py @@ -20,10 +20,10 @@ class MCU_analog_mux: self.oids = [self.mcu.create_oid() for pp in select_pin_params] self.pins = [pp['pin'] for pp in select_pin_params] self.pin_values = tuple([-1 for pp in select_pin_params]) - for oid, pin, value in zip(self.oids, self.pins, self.pin_values): + for oid, pin in zip(self.oids, self.pins): self.mcu.add_config_cmd("config_digital_out oid=%d pin=%s" - " value=%d default_value=0 max_duration=0" - % (oid, pin, value)) + " value=0 default_value=0 max_duration=0" + % (oid, pin)) self.update_pin_cmd = None self.mcu.register_config_callback(self.build_config) def build_config(self):