temperature: do set temperature_fan to 0 when pressing cooldown

This commit is contained in:
alfrix 2022-08-30 18:01:34 -03:00 committed by Alfredo Monclus
parent d1604c68d6
commit be2d5b040c

View File

@ -254,7 +254,7 @@ class TemperaturePanel(ScreenPanel):
elif i == heater:
target = self.preheat_options[setting][heater]
logging.info(f"heater match {heater}")
if target is None and setting == "cooldown":
if target is None and setting == "cooldown" and not heater.startswith('temperature_fan '):
target = 0
if heater.startswith('extruder'):
if self.validate(heater, target, max_temp):