Browse Source

Fix warning with FASTER_GCODE_PARSER disabled

Scott Lahteine 6 years ago
parent
commit
645df23eb0
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      Marlin/src/gcode/parser.h

+ 1
- 1
Marlin/src/gcode/parser.h View File

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

Loading…
Cancel
Save