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
|
@ -565,12 +565,13 @@
|
||||||
# is 1.0
|
# is 1.0
|
||||||
|
|
||||||
|
|
||||||
# Controller cooling fan. A "controller fan" is a fan that will be
|
# Controller cooling fan (one may define any number of sections with a
|
||||||
|
# "controller_fan" prefix). A "controller fan" is a fan that will be
|
||||||
# enabled whenever its associated heater or any configured stepper
|
# enabled whenever its associated heater or any configured stepper
|
||||||
# driver is active. The fan will stop, whenever an idle_timeout is
|
# driver is active. The fan will stop, whenever an idle_timeout is
|
||||||
# reached to ensure no overheating will occur after deactivating a
|
# reached to ensure no overheating will occur after deactivating a
|
||||||
# watched component.
|
# watched component.
|
||||||
#[controller_fan]
|
#[controller_fan my_controller_fan]
|
||||||
#pin:
|
#pin:
|
||||||
#max_power:
|
#max_power:
|
||||||
#shutdown_speed:
|
#shutdown_speed:
|
||||||
|
|
|
@ -6,6 +6,9 @@ All dates in this document are approximate.
|
||||||
|
|
||||||
# Changes
|
# Changes
|
||||||
|
|
||||||
|
20190310: The [controller_fan] config section now always takes a name
|
||||||
|
(such as [controller_fan my_controller_fan]).
|
||||||
|
|
||||||
20190308: The "driver_BLANK_TIME_SELECT" field in [tmc2130] and
|
20190308: The "driver_BLANK_TIME_SELECT" field in [tmc2130] and
|
||||||
[tmc2208] config sections has been renamed to "driver_TBL".
|
[tmc2208] config sections has been renamed to "driver_TBL".
|
||||||
|
|
||||||
|
|
|
@ -49,5 +49,5 @@ class ControllerFan:
|
||||||
self.fan.set_speed(print_time, power)
|
self.fan.set_speed(print_time, power)
|
||||||
return eventtime + 1.
|
return eventtime + 1.
|
||||||
|
|
||||||
def load_config(config):
|
def load_config_prefix(config):
|
||||||
return ControllerFan(config)
|
return ControllerFan(config)
|
||||||
|
|
|
@ -129,6 +129,9 @@ resistance3: 3000
|
||||||
sensor_type: my_custom_resistance_adc
|
sensor_type: my_custom_resistance_adc
|
||||||
sensor_pin: analog5
|
sensor_pin: analog5
|
||||||
|
|
||||||
|
[controller_fan test_controller_fan]
|
||||||
|
pin: ar17
|
||||||
|
|
||||||
[mcu]
|
[mcu]
|
||||||
serial: /dev/ttyACM0
|
serial: /dev/ttyACM0
|
||||||
pin_map: arduino
|
pin_map: arduino
|
||||||
|
|
Loading…
Reference in New Issue