From 069bd19aec35c441057df87163a07b4d2de51ea2 Mon Sep 17 00:00:00 2001 From: Scott Lahteine Date: Fri, 25 May 2018 06:46:28 -0500 Subject: [PATCH] Fix warning with FASTER_GCODE_PARSER disabled --- Marlin/parser.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Marlin/parser.h b/Marlin/parser.h index 165b55d1c2..4184191506 100644 --- a/Marlin/parser.h +++ b/Marlin/parser.h @@ -153,7 +153,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;