|
@@ -142,27 +142,23 @@ void GCodeParser::parse(char *p) {
|
142
|
142
|
// Skip spaces to get the numeric part
|
143
|
143
|
while (*p == ' ') p++;
|
144
|
144
|
|
145
|
|
- // Bail if there's no command code number
|
146
|
|
- // Prusa MMU2 has T?/Tx/Tc commands
|
147
|
|
- #if DISABLED(PRUSA_MMU2)
|
148
|
|
- if (!NUMERIC(*p)) return;
|
149
|
|
- #endif
|
150
|
|
-
|
151
|
|
- // Save the command letter at this point
|
152
|
|
- // A '?' signifies an unknown command
|
153
|
|
- command_letter = letter;
|
154
|
|
-
|
155
|
|
-
|
156
|
145
|
#if ENABLED(PRUSA_MMU2)
|
157
|
146
|
if (letter == 'T') {
|
158
|
147
|
// check for special MMU2 T?/Tx/Tc commands
|
159
|
148
|
if (*p == '?' || *p == 'x' || *p == 'c') {
|
|
149
|
+ command_letter = letter;
|
160
|
150
|
string_arg = p;
|
161
|
151
|
return;
|
162
|
152
|
}
|
163
|
153
|
}
|
164
|
154
|
#endif
|
165
|
155
|
|
|
156
|
+ // Bail if there's no command code number
|
|
157
|
+ if (!NUMERIC(*p)) return;
|
|
158
|
+
|
|
159
|
+ // Save the command letter at this point
|
|
160
|
+ // A '?' signifies an unknown command
|
|
161
|
+ command_letter = letter;
|
166
|
162
|
|
167
|
163
|
// Get the code number - integer digits only
|
168
|
164
|
codenum = 0;
|