Commit 19179d50 authored by Guillaume Seguin's avatar Guillaume Seguin

"off" should turn fans off too (#409)

parent 2d62d11b
...@@ -1426,9 +1426,10 @@ class pronsole(cmd.Cmd): ...@@ -1426,9 +1426,10 @@ class pronsole(cmd.Cmd):
def off(self): def off(self):
if self.p.online: if self.p.online:
if self.p.printing: self.pause(None) if self.p.printing: self.pause(None)
self.onecmd("M84; motors off") self.onecmd("M84; motors off")
self.onecmd("M104 S0; extruder off") self.onecmd("M104 S0; extruder off")
self.onecmd("M140 S0; heatbed off") self.onecmd("M140 S0; heatbed off")
self.onecmd("M107; fan off")
self.onecmd("M81; power supply off") self.onecmd("M81; power supply off")
else: else:
self.logError(_("Printer is not online. Unable to turn it off.")) self.logError(_("Printer is not online. Unable to turn it off."))
......
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