mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-20 23:05:19 +03:00
Made command parsing in CLI not treat _ as separator.
This commit is contained in:
parent
dd18d2c4ba
commit
be4ad9d982
1 changed files with 1 additions and 1 deletions
|
@ -3161,7 +3161,7 @@ static void cliMap(char *cmdline)
|
||||||
static char *checkCommand(char *cmdLine, const char *command)
|
static char *checkCommand(char *cmdLine, const char *command)
|
||||||
{
|
{
|
||||||
if(!strncasecmp(cmdLine, command, strlen(command)) // command names match
|
if(!strncasecmp(cmdLine, command, strlen(command)) // command names match
|
||||||
&& !isalnum((unsigned)cmdLine[strlen(command)])) { // next characted in bufffer is not alphanumeric (command is correctly terminated)
|
&& (isspace((unsigned)cmdLine[strlen(command)]) || cmdLine[strlen(command)] == 0)) {
|
||||||
return cmdLine + strlen(command) + 1;
|
return cmdLine + strlen(command) + 1;
|
||||||
} else {
|
} else {
|
||||||
return 0;
|
return 0;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue