diff options
author | Kevin O'Connor <kevin@koconnor.net> | 2024-11-26 19:21:06 -0500 |
---|---|---|
committer | Kevin O'Connor <kevin@koconnor.net> | 2024-12-01 14:16:13 -0500 |
commit | 62325d4a35d1ff851e1d18f73c884c81596f7574 (patch) | |
tree | ccc8dbf20a801ba9c62ca65d91ad8e2f217837e1 | |
parent | 03068b48fedf460768a9d117cff90e0e39470687 (diff) | |
download | kutter-62325d4a35d1ff851e1d18f73c884c81596f7574.tar.gz kutter-62325d4a35d1ff851e1d18f73c884c81596f7574.tar.xz kutter-62325d4a35d1ff851e1d18f73c884c81596f7574.zip |
gcode: Use the same M117/M118 fixup for M23
The M23 command has similar requirements for extracting the full
parameter string that M117/M118 have. Use the same code for those
fixups.
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
-rw-r--r-- | klippy/gcode.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/klippy/gcode.py b/klippy/gcode.py index 748e0ebf..e1d0637e 100644 --- a/klippy/gcode.py +++ b/klippy/gcode.py @@ -187,7 +187,7 @@ class GCodeDispatch: self._build_status_commands() self._respond_state("Ready") # Parse input into commands - args_r = re.compile('([A-Z_]+|[A-Z*/])') + args_r = re.compile('([A-Z_]+|[A-Z*])') def _process_commands(self, commands, need_ack=True): for line in commands: # Ignore comments and leading/trailing spaces @@ -289,7 +289,7 @@ class GCodeDispatch: if ' ' in cmd: # Handle M117/M118 gcode with numeric and special characters realcmd = cmd.split()[0] - if realcmd in ["M117", "M118"]: + if realcmd in ["M117", "M118", "M23"]: handler = self.gcode_handlers.get(realcmd, None) if handler is not None: gcmd._command = realcmd |