temperature: fix cooldown after 207914a

This commit is contained in:
alfrix 2022-08-02 08:57:16 -03:00
parent f37a6b579f
commit 455cb9da99

View File

@ -216,6 +216,7 @@ class TemperaturePanel(ScreenPanel):
target = None
max_temp = float(self._printer.get_config_section(heater)['max_temp'])
name = heater.split()[1] if len(heater.split()) > 1 else heater
with contextlib.suppress(KeyError):
for i in self.preheat_options[setting]:
logging.info(f"{self.preheat_options[setting]}")
if i == name: