Also turn off fan when aborting a print job.

master
Gina Häußge 2013-01-13 18:29:11 +01:00
parent ec4b909f66
commit e2387c55a4
1 changed files with 2 additions and 1 deletions

View File

@ -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):