From 645df23eb0cb11f67ec69959cbd75807e24ea225 Mon Sep 17 00:00:00 2001 From: Scott Lahteine Date: Fri, 25 May 2018 06:45:42 -0500 Subject: [PATCH] Fix warning with FASTER_GCODE_PARSER disabled --- 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 5c942b70b..e35585670 100644 --- a/Marlin/src/gcode/parser.h +++ b/Marlin/src/gcode/parser.h @@ -145,7 +145,7 @@ public: // Code is found in the string. If not found, value_ptr is unchanged. // This allows "if (seen('A')||seen('B'))" to use the last-found value. static bool seen(const char c) { - const char *p = strchr(command_args, c); + char *p = strchr(command_args, c); const bool b = !!p; if (b) value_ptr = valid_float(&p[1]) ? &p[1] : (char*)NULL; return b;