aboutsummaryrefslogtreecommitdiffstats
path: root/klippy/gcode.py
diff options
context:
space:
mode:
Diffstat (limited to 'klippy/gcode.py')
-rw-r--r--klippy/gcode.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/klippy/gcode.py b/klippy/gcode.py
index ca176ed0..975da792 100644
--- a/klippy/gcode.py
+++ b/klippy/gcode.py
@@ -35,7 +35,7 @@ class GCodeCommand:
# Skip any gcode line-number and ignore any trailing checksum
param_start += origline.upper().find(command)
end = origline.rfind('*')
- if end >= 0:
+ if end >= 0 and origline[end+1:].isdigit():
param_end = end
if origline[param_start:param_start+1].isspace():
param_start += 1