From 4dbaa6369fa457c3338408b60d25f82636494110 Mon Sep 17 00:00:00 2001 From: Marcio Teixeira Date: Tue, 6 Nov 2018 18:49:39 -0700 Subject: [PATCH] Fix const pointer assignment compile error (#12350) --- Marlin/src/gcode/gcode.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Marlin/src/gcode/gcode.cpp b/Marlin/src/gcode/gcode.cpp index 9502c7b6a..0d26e8668 100644 --- a/Marlin/src/gcode/gcode.cpp +++ b/Marlin/src/gcode/gcode.cpp @@ -753,7 +753,7 @@ void GcodeSuite::process_next_command() { void GcodeSuite::process_subcommands_now(char * gcode) { char * const saved_cmd = parser.command_ptr; // Save the parser state for (;;) { - const char * const delim = strchr(gcode, '\n'); // Get address of next newline + char * const delim = strchr(gcode, '\n'); // Get address of next newline if (delim) *delim = '\0'; // Replace with nul parser.parse(gcode); // Parse the current command process_parsed_command(true); // Process it