Fix command expansion for non-gcode commands

This commit is contained in:
Gina Häußge committed 2018-03-28 15:24:50 +02:00
1 parent 028425542f
commit b04aff7d5e
1 file changed
+3 -1
+3 -1
View File
@@ -2913,7 +2913,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