aboutsummaryrefslogtreecommitdiffstats
path: root/klippy/extras/tmc2660.py
diff options
context:
space:
mode:
authorKevin O'Connor <kevin@koconnor.net>2021-08-06 00:38:49 -0400
committerKevin O'Connor <kevin@koconnor.net>2021-08-08 22:28:10 -0400
commitf759df3cd72d0b1cb05615b2e4b04bbf5e8d62f8 (patch)
tree7c5b3753c03c96b5bf303b2f611c2225f83d8eae /klippy/extras/tmc2660.py
parent06b8169f56f264a9175b7790ba39cadc187ec2de (diff)
downloadkutter-f759df3cd72d0b1cb05615b2e4b04bbf5e8d62f8.tar.gz
kutter-f759df3cd72d0b1cb05615b2e4b04bbf5e8d62f8.tar.xz
kutter-f759df3cd72d0b1cb05615b2e4b04bbf5e8d62f8.zip
endstop_phase: Convert to using tmc mcu_phase_offset
Now that the TMC drivers track the phase offset, use that to implement endstop phase. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'klippy/extras/tmc2660.py')
-rw-r--r--klippy/extras/tmc2660.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/klippy/extras/tmc2660.py b/klippy/extras/tmc2660.py
index 125d7160..8cb1d1c1 100644
--- a/klippy/extras/tmc2660.py
+++ b/klippy/extras/tmc2660.py
@@ -229,8 +229,7 @@ class TMC2660:
current_helper = TMC2660CurrentHelper(config, self.mcu_tmc)
cmdhelper = tmc.TMCCommandHelper(config, self.mcu_tmc, current_helper)
cmdhelper.setup_register_dump(ReadRegisters)
- self.get_microsteps = cmdhelper.get_microsteps
- self.get_phase = cmdhelper.get_phase
+ self.get_phase_offset = cmdhelper.get_phase_offset
# CHOPCONF
set_config_field = self.fields.set_config_field