✨ Expand long running commands to support non-GCODE

Closes #4317
This commit is contained in:
Gina Häußge committed 2021-11-30 17:26:44 +01:00
1 parent 2ae28e1bd3
commit b32f23e74e
1 file changed
+6 -1
+6 -1
View File
@@ -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