Browse Source

Preferred patch to gcode.h

Scott Lahteine 7 years ago
parent
commit
a5fa586642
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      Marlin/gcode.h

+ 1
- 1
Marlin/gcode.h View File

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

Loading…
Cancel
Save