Skip to content

Commit

Permalink
Fix type conversion issue with echo_command
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
benlye committed Mar 24, 2017
1 parent eab7854 commit 6a601ac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Marlin/Marlin_main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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('"');
Expand Down

0 comments on commit 6a601ac

Please sign in to comment.