From b04aff7d5ed5d1fc5ee4197a85ead52086418fa5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gina=20H=C3=A4u=C3=9Fge?= Date: Wed, 28 Mar 2018 15:24:50 +0200 Subject: [PATCH] Fix command expansion for non-gcode commands --- src/octoprint/util/comm.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/octoprint/util/comm.py b/src/octoprint/util/comm.py index 5bef1e859..b85ed72f1 100644 --- a/src/octoprint/util/comm.py +++ b/src/octoprint/util/comm.py @@ -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