(self, cmd)
| 742 | self._callback.mcProgress(self._gcodePos) |
| 743 | |
| 744 | def sendCommand(self, cmd): |
| 745 | cmd = cmd.encode('ascii', 'replace') |
| 746 | if self.isPrinting() or self.isPaused() or self.isOperational(): |
| 747 | # If waiting for heating, send M108 immediatly to |
| 748 | # interrupt it instead of queueing it |
| 749 | if self._heatupWaiting and "M108" in cmd: |
| 750 | self._sendCommand(cmd) |
| 751 | else: |
| 752 | self._commandQueue.put(cmd) |
| 753 | if len(self._currentCommands) == 0: |
| 754 | self._sendCommand(self._commandQueue.get()) |
| 755 | |
| 756 | def printGCode(self, gcodeList): |
| 757 | if not self.isOperational() or self.isPrinting() or self.isPaused(): |
no test coverage detected