Prusa MMU2 (#12967)
This commit is contained in:
@@ -143,12 +143,27 @@ void GCodeParser::parse(char *p) {
|
||||
while (*p == ' ') p++;
|
||||
|
||||
// Bail if there's no command code number
|
||||
if (!NUMERIC(*p)) return;
|
||||
// Prusa MMU2 has T?/Tx/Tc commands
|
||||
#if DISABLED(PRUSA_MMU2)
|
||||
if (!NUMERIC(*p)) return;
|
||||
#endif
|
||||
|
||||
// Save the command letter at this point
|
||||
// A '?' signifies an unknown command
|
||||
command_letter = letter;
|
||||
|
||||
|
||||
#if ENABLED(PRUSA_MMU2)
|
||||
if (letter == 'T') {
|
||||
// check for special MMU2 T?/Tx/Tc commands
|
||||
if (*p == '?' || *p == 'x' || *p == 'c') {
|
||||
string_arg = p;
|
||||
return;
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
|
||||
// Get the code number - integer digits only
|
||||
codenum = 0;
|
||||
do { codenum *= 10, codenum += *p++ - '0'; } while (NUMERIC(*p));
|
||||
|
||||
Reference in New Issue
Block a user