From 126e78dcce797b8a1725707c0cd14bc5d9a98118 Mon Sep 17 00:00:00 2001 From: Scott Lahteine Date: Sun, 9 Mar 2025 15:41:13 -0500 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20Fix=20quoted=20string=20value=20?= =?UTF-8?q?detection?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Marlin/src/gcode/parser.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Marlin/src/gcode/parser.h b/Marlin/src/gcode/parser.h index c2fe6880ed..401548b309 100644 --- a/Marlin/src/gcode/parser.h +++ b/Marlin/src/gcode/parser.h @@ -146,7 +146,7 @@ public: if (b) { if (param[ind]) { char * const ptr = command_ptr + param[ind]; - value_ptr = valid_number(ptr) ? ptr : nullptr; + value_ptr = (valid_number(ptr) || TERN0(GCODE_QUOTED_STRINGS, *(ptr - 1) == '"')) ? ptr : nullptr; } else value_ptr = nullptr;