Temp_panel: Fix extruder not setting temps with numpad (#426)

This commit is contained in:
Alfredo Monclus 2022-01-11 08:59:07 -03:00 committed by GitHub
parent 8a8c6c064c
commit eb80be47db
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -327,7 +327,7 @@ class TemperaturePanel(ScreenPanel):
return return
temp = 0 if temp < 0 else temp temp = 0 if temp < 0 else temp
if self.active_heater.startswith('extruder '): if self.active_heater.startswith('extruder'):
self._screen._ws.klippy.set_tool_temp(self._printer.get_tool_number(self.active_heater), temp) self._screen._ws.klippy.set_tool_temp(self._printer.get_tool_number(self.active_heater), temp)
elif self.active_heater == "heater_bed": elif self.active_heater == "heater_bed":
self._screen._ws.klippy.set_bed_temp(temp) self._screen._ws.klippy.set_bed_temp(temp)