Skip to content

Commit 126e78d

Browse files
committed
🐛 Fix quoted string value detection
1 parent e02de3a commit 126e78d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Marlin/src/gcode/parser.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ class GCodeParser {
146146
if (b) {
147147
if (param[ind]) {
148148
char * const ptr = command_ptr + param[ind];
149-
value_ptr = valid_number(ptr) ? ptr : nullptr;
149+
value_ptr = (valid_number(ptr) || TERN0(GCODE_QUOTED_STRINGS, *(ptr - 1) == '"')) ? ptr : nullptr;
150150
}
151151
else
152152
value_ptr = nullptr;

0 commit comments

Comments
 (0)