diff options
author | Kevin O'Connor <kevin@koconnor.net> | 2020-01-05 20:42:34 -0500 |
---|---|---|
committer | Kevin O'Connor <kevin@koconnor.net> | 2020-12-18 10:30:32 -0500 |
commit | 96eba9f2df2e0b5972e56be9e29c324984410265 (patch) | |
tree | dd351404d4c4b840aa035086538a783f7422f629 /klippy/extras/tmc.py | |
parent | 7dcc778b6c25a4956cbf0180423eeb3e450e1243 (diff) | |
download | kutter-96eba9f2df2e0b5972e56be9e29c324984410265.tar.gz kutter-96eba9f2df2e0b5972e56be9e29c324984410265.tar.xz kutter-96eba9f2df2e0b5972e56be9e29c324984410265.zip |
endstop_phase: Obtain phases directly from stepper microsteps config
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'klippy/extras/tmc.py')
-rw-r--r-- | klippy/extras/tmc.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/klippy/extras/tmc.py b/klippy/extras/tmc.py index c14a5f0f..4d3296aa 100644 --- a/klippy/extras/tmc.py +++ b/klippy/extras/tmc.py @@ -283,7 +283,7 @@ class TMCMicrostepHelper: field_name = "MSTEP" reg = self.mcu_tmc.get_register(self.fields.lookup_register(field_name)) mscnt = self.fields.get_field(field_name, reg) - return (1023 - mscnt) >> self.fields.get_field("MRES") + return 1023 - mscnt, 1024 # Helper to configure "stealthchop" mode def TMCStealthchopHelper(config, mcu_tmc, tmc_freq): |