aboutsummaryrefslogtreecommitdiffstats
path: root/klippy/extras/stepper_enable.py
diff options
context:
space:
mode:
authorSophie Hirn <sophie.hirn@wyvernscale.com>2021-07-20 16:19:59 +0200
committerGitHub <noreply@github.com>2021-07-20 10:19:59 -0400
commitde57ce3a99805502f61ff000668cd5e7b5b93aa1 (patch)
tree7619587b60c47abef972cee0fac33f1700cab11f /klippy/extras/stepper_enable.py
parentdafb74e3aba707db364ed773bb2135084ac0fffa (diff)
downloadkutter-de57ce3a99805502f61ff000668cd5e7b5b93aa1.tar.gz
kutter-de57ce3a99805502f61ff000668cd5e7b5b93aa1.tar.xz
kutter-de57ce3a99805502f61ff000668cd5e7b5b93aa1.zip
controller_fan: Add "stepper" config option (#4447)
Allows contoller_fan sections to monitor only certain steppers instead of all of them, similar to how heaters are currently handled. Signed-off-by: Sophie Hirn <sophie.hirn@wyvernscale.com>
Diffstat (limited to 'klippy/extras/stepper_enable.py')
-rw-r--r--klippy/extras/stepper_enable.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/klippy/extras/stepper_enable.py b/klippy/extras/stepper_enable.py
index a7fdf8ac..90458458 100644
--- a/klippy/extras/stepper_enable.py
+++ b/klippy/extras/stepper_enable.py
@@ -126,6 +126,8 @@ class PrinterStepperEnable:
if name not in self.enable_lines:
raise self.printer.config_error("Unknown stepper '%s'" % (name,))
return self.enable_lines[name]
+ def get_steppers(self):
+ return [e.stepper for e in self.enable_lines.values()]
def load_config(config):
return PrinterStepperEnable(config)