aboutsummaryrefslogtreecommitdiffstats
path: root/klippy/extras/tmc2130.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/tmc2130.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/tmc2130.py')
-rw-r--r--klippy/extras/tmc2130.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/klippy/extras/tmc2130.py b/klippy/extras/tmc2130.py
index 7d9e554f..b23b2a64 100644
--- a/klippy/extras/tmc2130.py
+++ b/klippy/extras/tmc2130.py
@@ -260,8 +260,7 @@ class TMC2130:
current_helper = TMCCurrentHelper(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
# Setup basic register values
tmc.TMCStealthchopHelper(config, self.mcu_tmc, TMC_FREQUENCY)
# Allow other registers to be set from the config