temperature: fix cooldown after 207914a
This commit is contained in:
parent
f37a6b579f
commit
455cb9da99
@ -216,15 +216,16 @@ class TemperaturePanel(ScreenPanel):
|
|||||||
target = None
|
target = None
|
||||||
max_temp = float(self._printer.get_config_section(heater)['max_temp'])
|
max_temp = float(self._printer.get_config_section(heater)['max_temp'])
|
||||||
name = heater.split()[1] if len(heater.split()) > 1 else heater
|
name = heater.split()[1] if len(heater.split()) > 1 else heater
|
||||||
for i in self.preheat_options[setting]:
|
with contextlib.suppress(KeyError):
|
||||||
logging.info(f"{self.preheat_options[setting]}")
|
for i in self.preheat_options[setting]:
|
||||||
if i == name:
|
logging.info(f"{self.preheat_options[setting]}")
|
||||||
# Assign the specific target if available
|
if i == name:
|
||||||
target = self.preheat_options[setting][name]
|
# Assign the specific target if available
|
||||||
logging.info(f"name match {name}")
|
target = self.preheat_options[setting][name]
|
||||||
elif i == heater:
|
logging.info(f"name match {name}")
|
||||||
target = self.preheat_options[setting][heater]
|
elif i == heater:
|
||||||
logging.info(f"heater match {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":
|
||||||
target = 0
|
target = 0
|
||||||
if heater.startswith('extruder'):
|
if heater.startswith('extruder'):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user