Selaa lähdekoodia

fix compile error

invalid conversion from 'const char*' to 'char*' [-fpermissive]
Bob-the-Kuhn 8 vuotta sitten
vanhempi
commit
8206bb9bb9
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  1. 1
    1
      Marlin/gcode.h

+ 1
- 1
Marlin/gcode.h Näytä tiedosto

135
     static bool seen(const char c) {
135
     static bool seen(const char c) {
136
       const char *p = strchr(command_args, c);
136
       const char *p = strchr(command_args, c);
137
       const bool b = !!p;
137
       const bool b = !!p;
138
-      if (b) value_ptr = DECIMAL_SIGNED(p[1]) ? &p[1] : NULL;
138
+      if (b) value_ptr = (char*) (DECIMAL_SIGNED(p[1]) ? &p[1] : NULL);
139
       return b;
139
       return b;
140
     }
140
     }
141
 
141
 

Loading…
Peruuta
Tallenna