diff options
author | Sophie Hirn <sophie.hirn@wyvernscale.com> | 2021-07-20 16:19:59 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-07-20 10:19:59 -0400 |
commit | de57ce3a99805502f61ff000668cd5e7b5b93aa1 (patch) | |
tree | 7619587b60c47abef972cee0fac33f1700cab11f /klippy/extras/stepper_enable.py | |
parent | dafb74e3aba707db364ed773bb2135084ac0fffa (diff) | |
download | kutter-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.py | 2 |
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) |