Commit 0cb7fd23 authored by Guillaume Seguin's avatar Guillaume Seguin

Detect tool changes from sent gcode

parent 279b71cb
...@@ -418,6 +418,9 @@ class PronterWindow(MainWindow, pronsole.pronsole): ...@@ -418,6 +418,9 @@ class PronterWindow(MainWindow, pronsole.pronsole):
temp = gline_s temp = gline_s
if self.display_gauges: wx.CallAfter(self.bedtgauge.SetTarget, temp) if self.display_gauges: wx.CallAfter(self.bedtgauge.SetTarget, temp)
if self.display_graph: wx.CallAfter(self.graph.SetBedTargetTemperature, temp) if self.display_graph: wx.CallAfter(self.graph.SetBedTargetTemperature, temp)
elif gline.command.startswith("T"):
tool = gline.command[1:]
if self.hasattr("extrudersel"): wx.CallAfter(self.extrudersel.SetValue, tool)
else: else:
return return
self.sentlines.put_nowait(line) self.sentlines.put_nowait(line)
......
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