temperature: Fix problem with manually enterring tool temp
This commit is contained in:
@@ -242,7 +242,7 @@ class TemperaturePanel(ScreenPanel):
|
|||||||
else:
|
else:
|
||||||
temp = int(text)
|
temp = int(text)
|
||||||
temp = 0 if temp < 0 or temp > KlippyGcodes.MAX_EXT_TEMP else temp
|
temp = 0 if temp < 0 or temp > KlippyGcodes.MAX_EXT_TEMP else temp
|
||||||
self._screen._ws.klippy.set_tool_temp(self._printer.get_tool_number(heater), temp)
|
self._screen._ws.klippy.set_tool_temp(self._printer.get_tool_number(self.active_heater), temp)
|
||||||
self._printer.set_dev_stat(self.active_heater, "target", temp)
|
self._printer.set_dev_stat(self.active_heater, "target", temp)
|
||||||
self.labels['entry'].set_text("")
|
self.labels['entry'].set_text("")
|
||||||
else:
|
else:
|
||||||
|
Reference in New Issue
Block a user