From a52a627893071c0e68cd033ff4e745f017532ca2 Mon Sep 17 00:00:00 2001 From: Kevin O'Connor Date: Thu, 5 Aug 2021 13:53:36 -0400 Subject: [PATCH] tmc2208: Send pdn_disable UART setup as first command to chip during init Signed-off-by: Kevin O'Connor --- klippy/extras/tmc2208.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/klippy/extras/tmc2208.py b/klippy/extras/tmc2208.py index 5127d61e..759c9617 100644 --- a/klippy/extras/tmc2208.py +++ b/klippy/extras/tmc2208.py @@ -187,12 +187,12 @@ class TMC2208: # Setup mcu communication self.fields = tmc.FieldHelper(Fields, SignedFields, FieldFormatters) self.mcu_tmc = tmc_uart.MCU_TMC_uart(config, Registers, self.fields) + self.fields.set_field("pdn_disable", True) # Register commands current_helper = tmc2130.TMCCurrentHelper(config, self.mcu_tmc) cmdhelper = tmc.TMCCommandHelper(config, self.mcu_tmc, current_helper) cmdhelper.setup_register_dump(ReadRegisters, self.read_translate) # Setup basic register values - self.fields.set_field("pdn_disable", True) self.fields.set_field("mstep_reg_select", True) self.fields.set_field("multistep_filt", True) mh = tmc.TMCMicrostepHelper(config, self.mcu_tmc)