diff --git a/macros/TARGET_FAN.cfg b/macros/TARGET_FAN.cfg index de93946..4d806ac 100644 --- a/macros/TARGET_FAN.cfg +++ b/macros/TARGET_FAN.cfg @@ -3,7 +3,7 @@ gcode: {% set HEATER_TARGET = params.HEATER_TARGET|default(60)|float %} {% set FAN_TARGET = params.FAN_TARGET|default(100)|float %} {% set FAN_SPEED = params.FAN_SPEED|default(1)|float %} - {% set FAN_NAME = params.FAN_NAME|default('bed_fan')|float %} + {% set FAN_NAME = params.FAN_NAME|default('bed_fan')|string %} {% if HEATER_TARGET >= FAN_TARGET %} SET_FAN_SPEED FAN={FAN_NAME} SPEED={FAN_SPEED} # Turn on bed_fan if target is above or equal. @@ -30,4 +30,4 @@ gcode: # This allows us to use multiple fan speeds and even multiple fans with this macro. # # I also changed BED_TARGET to HEATER_TARGET to make this more generic for -# use with any heater/fan combination. Sorry, last breaking change to this macro, I promise! \ No newline at end of file +# use with any heater/fan combination. Sorry, last breaking change to this macro, I promise!