Also nullify spaces before the checksum asterisk (PR#2409)
This commit is contained in:
parent
0fd814e4f1
commit
6b1b8cb2b3
|
@ -5293,7 +5293,7 @@ void process_next_command() {
|
||||||
while (*current_command == ' ') ++current_command; // skip [ ]*
|
while (*current_command == ' ') ++current_command; // skip [ ]*
|
||||||
}
|
}
|
||||||
char *starpos = strchr(current_command, '*'); // * should always be the last parameter
|
char *starpos = strchr(current_command, '*'); // * should always be the last parameter
|
||||||
if (starpos) *starpos = '\0';
|
if (starpos) while (*starpos == ' ' || *starpos == '*') *starpos-- = '\0'; // nullify '*' and ' '
|
||||||
|
|
||||||
// Get the command code, which must be G, M, or T
|
// Get the command code, which must be G, M, or T
|
||||||
char command_code = *current_command;
|
char command_code = *current_command;
|
||||||
|
|
Loading…
Reference in a new issue