Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sensorless dwell bug #120

Merged
merged 2 commits into from
Jan 9, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions klippy/stepper.py
Original file line number Diff line number Diff line change
Expand Up @@ -400,9 +400,7 @@ def __init__(
self.endstop_map = {}
self.add_extra_stepper(config)
mcu_stepper = self.steppers[0]
self._tmc_current_helpers = [
s.get_tmc_current_helper() for s in self.steppers
]
self._tmc_current_helpers = None
self.get_name = mcu_stepper.get_name
self.get_commanded_position = mcu_stepper.get_commanded_position
self.calc_position_from_coord = mcu_stepper.calc_position_from_coord
Expand Down Expand Up @@ -485,6 +483,10 @@ def __init__(
)

def get_tmc_current_helpers(self):
if self._tmc_current_helpers is None:
self._tmc_current_helpers = [
s.get_tmc_current_helper() for s in self.steppers
]
return self._tmc_current_helpers

def get_range(self):
Expand Down