|
@@ -5170,7 +5170,7 @@ void process_next_command() {
|
5170
|
5170
|
// - Overwrite * with nul to mark the end
|
5171
|
5171
|
while (*current_command == ' ') ++current_command;
|
5172
|
5172
|
if (*current_command == 'N' && current_command[1] >= '0' && current_command[1] <= '9') {
|
5173
|
|
- while (*current_command != ' ') ++current_command;
|
|
5173
|
+ while (*current_command != ' ' && *current_command != 'G' && *current_command != 'M' && *current_command != 'T') ++current_command;
|
5174
|
5174
|
while (*current_command == ' ') ++current_command;
|
5175
|
5175
|
}
|
5176
|
5176
|
char *starpos = strchr(current_command, '*'); // * should always be the last parameter
|