mirror of
https://github.com/Klipper3d/klipper.git
synced 2025-07-15 10:47:52 -06:00
controller_fan: Allow multiple controller_fan sections to be defined
It may be necessary to define multiple fans, so allow each config section to be named. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
parent
19c7955f2a
commit
d3f6dad853
4 changed files with 10 additions and 3 deletions
|
@ -49,5 +49,5 @@ class ControllerFan:
|
|||
self.fan.set_speed(print_time, power)
|
||||
return eventtime + 1.
|
||||
|
||||
def load_config(config):
|
||||
def load_config_prefix(config):
|
||||
return ControllerFan(config)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue