From 6a601aca35511a781b7fa62eb8520ea431b2df86 Mon Sep 17 00:00:00 2001 From: benlye Date: Fri, 24 Mar 2017 13:21:53 +0000 Subject: [PATCH] Fix type conversion issue with echo_command With the the current definition of echo_command I cannot compile RCBugFix (Arduino IDE 1.8.1) with the error "invalid conversion from 'const char*' to 'char*'". This change resolves that. --- Marlin/Marlin_main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Marlin/Marlin_main.cpp b/Marlin/Marlin_main.cpp index 5a9d6fb78..9d9e52b04 100755 --- a/Marlin/Marlin_main.cpp +++ b/Marlin/Marlin_main.cpp @@ -796,7 +796,7 @@ extern "C" { extern void digipot_i2c_init(); #endif -inline void echo_command(char * const cmd) { +inline void echo_command(const char* cmd) { SERIAL_ECHO_START; SERIAL_ECHOPAIR(MSG_ENQUEUEING, cmd); SERIAL_CHAR('"');