fan: Scale fan speed requests between 0 and max_power

If the fan's max power is limited by the config, then scale speed
requests between 0 and max_power.  This makes more sense for typical
g-code fan speeds.

Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
Kevin O'Connor
2018-04-20 13:15:03 -04:00
parent 48e9fa04e7
commit 85e6cd865c
4 changed files with 9 additions and 8 deletions

View File

@@ -205,10 +205,10 @@
#heater_temp: 50.0
# A temperature (in Celsius) that the heater must drop below before
# the fan is disabled. The default is 50 Celsius.
#fan_speed:
#fan_speed: 1.0
# The fan speed (expressed as a value from 0.0 to 1.0) that the fan
# will be set to when its associated heater is enabled. The default
# is max_power.
# is 1.0
# Additional micro-controllers (one may define any number of sections