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>
This commit is contained in:
Sophie Hirn
2021-07-20 16:19:59 +02:00
committed by GitHub
parent dafb74e3ab
commit de57ce3a99
3 changed files with 25 additions and 7 deletions

View File

@@ -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)