Merge branch 'staging/maintenance' into maintenance

This commit is contained in:
Gina Häußge committed 2018-03-29 16:59:24 +02:00
commit 2152c401bf
5 files changed
+20 -20

No files matched your search

+4 -2
View File
@@ -1545,7 +1545,7 @@ class MachineCom(object):
handled = False
# process oks
if line.startswith("ok") or (self.isPrinting() and supportWait and line == "wait"):
if line.startswith("ok") or (self.isPrinting() and not self.job_on_hold and supportWait and line == "wait"):
# ok only considered handled if it's alone on the line, might be
# a response to an M105 or an M114
self._handle_ok()
@@ -2930,7 +2930,9 @@ class MachineCom(object):
modified = True
else:
new_results.append((command, command_type, gcode, subcode, tags))
modified = True
else:
new_results.append((command, command_type, gcode, subcode, tags))
if modified:
if not new_results:
# gcode handler returned None or empty list for all commands, so we'll stop here and return a full out empty result