chiark / gitweb /
Restore commit fda889d91263c6c381334e4f7a6d1bbb687a8e3f
authorYouness Alaoui <kakaroto@kakaroto.homelinux.net>
Mon, 29 Jun 2015 21:14:45 +0000 (17:14 -0400)
committerYouness Alaoui <kakaroto@kakaroto.homelinux.net>
Mon, 29 Jun 2015 21:14:45 +0000 (17:14 -0400)
Cura/util/printerConnection/serialConnection.py

index db447ce9c219eefed5aa3307eb5d751f651c4925..81f03bf4337b4934476d5ab7945e0f6be2d63405 100644 (file)
@@ -116,7 +116,7 @@ class serialConnection(printerConnectionBase.printerConnectionBase):
                self.disableSteppers()
 
        def isPrinting(self):
-               return self._commState == machineCom.MachineCom.STATE_PRINTING or self.isPaused()
+               return self._commState == machineCom.MachineCom.STATE_PRINTING
 
        #Returns true if we have the ability to pause the file printing.
        def hasPause(self):
@@ -127,7 +127,7 @@ class serialConnection(printerConnectionBase.printerConnectionBase):
 
        #Pause or unpause the printing depending on the value, if supported.
        def pause(self, value):
-               if not self.isPrinting() or self._process is None:
+               if not (self.isPrinting() or self.isPaused()) or self._process is None:
                        return
                self._process.stdin.write('PAUSE\n' if value else "RESUME\n")