Kaynağa Gözat

Fix const pointer assignment compile error (#12350)

Marcio Teixeira 6 yıl önce
ebeveyn
işleme
4dbaa6369f
1 değiştirilmiş dosya ile 1 ekleme ve 1 silme
  1. 1
    1
      Marlin/src/gcode/gcode.cpp

+ 1
- 1
Marlin/src/gcode/gcode.cpp Dosyayı Görüntüle

@@ -753,7 +753,7 @@ void GcodeSuite::process_next_command() {
753 753
   void GcodeSuite::process_subcommands_now(char * gcode) {
754 754
     char * const saved_cmd = parser.command_ptr;        // Save the parser state
755 755
     for (;;) {
756
-      const char * const delim = strchr(gcode, '\n');   // Get address of next newline
756
+      char * const delim = strchr(gcode, '\n');         // Get address of next newline
757 757
       if (delim) *delim = '\0';                         // Replace with nul
758 758
       parser.parse(gcode);                              // Parse the current command
759 759
       process_parsed_command(true);                     // Process it

Loading…
İptal
Kaydet