Pārlūkot izejas kodu

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.
benlye 8 gadus atpakaļ
vecāks
revīzija
6a601aca35
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  1. 1
    1
      Marlin/Marlin_main.cpp

+ 1
- 1
Marlin/Marlin_main.cpp Parādīt failu

@@ -796,7 +796,7 @@ extern "C" {
796 796
   extern void digipot_i2c_init();
797 797
 #endif
798 798
 
799
-inline void echo_command(char * const cmd) {
799
+inline void echo_command(const char* cmd) {
800 800
   SERIAL_ECHO_START;
801 801
   SERIAL_ECHOPAIR(MSG_ENQUEUEING, cmd);
802 802
   SERIAL_CHAR('"');

Notiek ielāde…
Atcelt
Saglabāt