Fix search for white space in enqueued commands
This commit is contained in:
parent
8d5bea073b
commit
d5379ee9d6
1 changed files with 1 additions and 1 deletions
|
@ -143,7 +143,7 @@ bool enqueue_and_echo_command(const char* cmd) {
|
||||||
//SERIAL_ECHO(cmd);
|
//SERIAL_ECHO(cmd);
|
||||||
//SERIAL_ECHO("\") \n");
|
//SERIAL_ECHO("\") \n");
|
||||||
|
|
||||||
if (*cmd == 0 || *cmd == '\n' || *cmd == 'r') {
|
if (*cmd == 0 || *cmd == '\n' || *cmd == '\r') {
|
||||||
//SERIAL_ECHO("Null command found... Did not queue!\n");
|
//SERIAL_ECHO("Null command found... Did not queue!\n");
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
Reference in a new issue