Also turn off fan when aborting a print job.
This commit is contained in:
1 parent
ec4b909f66
commit
e2387c55a4
1 file changed
+2
-1
@@ -203,7 +203,7 @@ class Printer():
|
||||
return
|
||||
self._comm.cancelPrint()
|
||||
if disableMotorsAndHeater:
|
||||
self.commands(["M84", "M104 S0", "M140 S0"]) # disable motors, switch off heaters
|
||||
self.commands(["M84", "M104 S0", "M140 S0", "M106 S0"]) # disable motors, switch off heaters and fan
|
||||
|
||||
# reset line, height, print time
|
||||
self._setCurrentZ(None)
|
||||
@@ -538,6 +538,7 @@ class StateMonitor(object):
|
||||
|
||||
self._lastUpdate = time.time()
|
||||
self._worker = threading.Thread(target=self._work)
|
||||
self._worker.daemon = True
|
||||
self._worker.start()
|
||||
|
||||
def reset(self, state=None, jobData=None, gcodeData=None, progress=None, currentZ=None):
|
||||
|
||||
Reference in new issue
Block a user