Fixed bug preventing from being able to connect to printer
parent
bd68e0ae54
commit
9e1760fb36
|
@ -362,7 +362,7 @@ class Printer():
|
||||||
elif state == self._comm.STATE_CLOSED or state == self._comm.STATE_ERROR or state == self._comm.STATE_CLOSED_WITH_ERROR:
|
elif state == self._comm.STATE_CLOSED or state == self._comm.STATE_ERROR or state == self._comm.STATE_CLOSED_WITH_ERROR:
|
||||||
self._gcodeManager.printFailed(self._filename)
|
self._gcodeManager.printFailed(self._filename)
|
||||||
self._gcodeManager.resumeAnalysis() # do not analyse gcode while printing
|
self._gcodeManager.resumeAnalysis() # do not analyse gcode while printing
|
||||||
elif state == self._comm.STATE_PRINTING:
|
elif self._comm is not None and state == self._comm.STATE_PRINTING:
|
||||||
self._gcodeManager.pauseAnalysis() # printing done, put those cpu cycles to good use
|
self._gcodeManager.pauseAnalysis() # printing done, put those cpu cycles to good use
|
||||||
|
|
||||||
self._setState(state)
|
self._setState(state)
|
||||||
|
|
Loading…
Reference in New Issue