Commit 1c3bb6d7 authored by Guillaume Seguin's avatar Guillaume Seguin

Fix #521

parent 45499b34
...@@ -1651,8 +1651,8 @@ Printrun. If not, see <http://www.gnu.org/licenses/>.""" ...@@ -1651,8 +1651,8 @@ Printrun. If not, see <http://www.gnu.org/licenses/>."""
if self.display_graph: wx.CallAfter(self.graph.SetExtruder0Temperature, hotend_temp) if self.display_graph: wx.CallAfter(self.graph.SetExtruder0Temperature, hotend_temp)
if self.display_gauges: wx.CallAfter(self.hottgauge.SetValue, hotend_temp) if self.display_gauges: wx.CallAfter(self.hottgauge.SetValue, hotend_temp)
setpoint = None setpoint = None
if "T0" in temps and temps["T0"][1] is not None: setpoint = float(temps["T0"][1]) if "T0" in temps and temps["T0"][1]: setpoint = float(temps["T0"][1])
elif temps["T"][1] is not None: setpoint = float(temps["T"][1]) elif temps["T"][1]: setpoint = float(temps["T"][1])
if setpoint is not None: if setpoint is not None:
if self.display_graph: wx.CallAfter(self.graph.SetExtruder0TargetTemperature, setpoint) if self.display_graph: wx.CallAfter(self.graph.SetExtruder0TargetTemperature, setpoint)
if self.display_gauges: wx.CallAfter(self.hottgauge.SetTarget, setpoint) if self.display_gauges: wx.CallAfter(self.hottgauge.SetTarget, setpoint)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment