From f01c8853ca5c4f7d89ea1ae9a33779fe9c0446b1 Mon Sep 17 00:00:00 2001 From: Alex Voinea Date: Mon, 13 May 2024 22:31:39 +0200 Subject: tmc: Do not pass the frequency directly to the helpers Use the new get_tmc_frequency() instead. Signed-off-by: Alex Voinea --- klippy/extras/tmc2209.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'klippy/extras/tmc2209.py') diff --git a/klippy/extras/tmc2209.py b/klippy/extras/tmc2209.py index c248c2d6..1149cdc2 100644 --- a/klippy/extras/tmc2209.py +++ b/klippy/extras/tmc2209.py @@ -73,7 +73,7 @@ class TMC2209: self.get_status = cmdhelper.get_status # Setup basic register values self.fields.set_field("mstep_reg_select", True) - tmc.TMCStealthchopHelper(config, self.mcu_tmc, TMC_FREQUENCY) + tmc.TMCStealthchopHelper(config, self.mcu_tmc) # Allow other registers to be set from the config set_config_field = self.fields.set_config_field # GCONF -- cgit v1.2.3-70-g09d2