sys.stdout.write('progress:%d\n' % (lineNr))
def mcZChange(self, newZ):
- pass
+ sys.stdout.write('changeZ:%f\n' % (newZ))
def monitorStdin(self):
while not (self._comm.isClosed() or sys.stdin.closed):
self._comm.sendCommand(line[1])
elif line[0] == 'START':
self._comm.printGCode(self._gcodeList)
+ elif line[0] == 'PAUSE':
+ self._comm.setPause(True)
+ elif line[0] == 'RESUME':
+ self._comm.setPause(False)
else:
sys.stderr.write(str(line))