From b32f23e74e2f157b1e290a8dfa458fbc701f3a3d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gina=20H=C3=A4u=C3=9Fge?= Date: Tue, 30 Nov 2021 17:26:44 +0100 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20Expand=20long=20running=20commands?= =?UTF-8?q?=20to=20support=20non-GCODE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Closes #4317 --- src/octoprint/util/comm.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/octoprint/util/comm.py b/src/octoprint/util/comm.py index ed54d2be9..9a1d8807e 100644 --- a/src/octoprint/util/comm.py +++ b/src/octoprint/util/comm.py @@ -5411,6 +5411,7 @@ class MachineCom(object): }, ) return (None,) + if gcode in self._ignored_commands: message = "Not sending {} to printer, it's configured as an ignored command".format( gcode @@ -5430,7 +5431,11 @@ class MachineCom(object): def _command_phase_sending( self, cmd, cmd_type=None, gcode=None, subcode=None, *args, **kwargs ): - if gcode is not None and gcode in self._long_running_commands: + if ( + gcode is not None + and gcode in self._long_running_commands + or cmd in self._long_running_commands + ): self._long_running_command = True