Upgrade to use M142 for coolers according to last marlinkimbra

parent ef861fc4
......@@ -392,7 +392,7 @@ class pronsole(cmd.Cmd):
if self.status.cooler_enabled:
if self.status.cooler_temp_target != 0:
self.log("Setting cooler temp to 0")
self.p.send_now("M140 C S0.0")
self.p.send_now("M142 S0.0")
self.log("Disconnecting from printer...")
if self.p.printing:
self.log(_("Are you sure you want to exit while printing?\n\
......@@ -1421,7 +1421,7 @@ class pronsole(cmd.Cmd):
self.logError(_("You must enter a temperature."))
if f is not None and f >= 0:
if self.p.online:
self.p.send_now("M140 C S" + l)
self.p.send_now("M142 S" + l)
self.log(_("Setting cooler temperature to %s degrees Celsius.") % f)
else:
self.logError(_("Printer is not online."))
......@@ -1684,7 +1684,7 @@ class pronsole(cmd.Cmd):
self.log(_("; Heatbed off"))
self.onecmd("M140 S0")
self.log(_("; Cooler off"))
self.onecmd("M140 C S0")
self.onecmd("M142 S0")
self.log(_("; Fan off"))
self.onecmd("M107")
self.log(_("; Power supply off"))
......
......@@ -433,7 +433,7 @@ class PronterWindow(MainWindow, pronsole.pronsole):
f = float(l)
if f >= 0:
if self.p.online:
self.p.send_now("M140 C S" + l)
self.p.send_now("M142 S" + l)
self.log(_("Setting Cooler temperature to %f degrees Celsius.") % f)
self.setcoolergui(f)
else:
......@@ -1623,7 +1623,7 @@ Printrun. If not, see <http://www.gnu.org/licenses/>."""
temp = gline_s
if self.display_gauges: wx.CallAfter(self.bedtgauge.SetTarget, temp)
if self.display_graph: wx.CallAfter(self.graph.SetBedTargetTemperature, temp)
elif gline.command in ["M140", "M190"] and gcoder.C(gline):
elif gline.command in ["M142", "M192"] and gcoder.C(gline):
gline_s = gcoder.S(gline)
if gline_s is not None:
temp = gline_s
......
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