Pārlūkot izejas kodu

Fix warning with FASTER_GCODE_PARSER disabled

Scott Lahteine 6 gadus atpakaļ
vecāks
revīzija
645df23eb0
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  1. 1
    1
      Marlin/src/gcode/parser.h

+ 1
- 1
Marlin/src/gcode/parser.h Parādīt failu

@@ -145,7 +145,7 @@ public:
145 145
     // Code is found in the string. If not found, value_ptr is unchanged.
146 146
     // This allows "if (seen('A')||seen('B'))" to use the last-found value.
147 147
     static bool seen(const char c) {
148
-      const char *p = strchr(command_args, c);
148
+      char *p = strchr(command_args, c);
149 149
       const bool b = !!p;
150 150
       if (b) value_ptr = valid_float(&p[1]) ? &p[1] : (char*)NULL;
151 151
       return b;

Notiek ielāde…
Atcelt
Saglabāt