mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-14 20:10:18 +03:00
amazing patch from jef78m for cli set
git-svn-id: https://afrodevices.googlecode.com/svn/trunk/baseflight@350 7c89a4a9-59b9-e629-4cfe-3a2d53b20e61
This commit is contained in:
parent
c6b43776e4
commit
82130ca60f
3 changed files with 4125 additions and 3233 deletions
10
src/cli.c
10
src/cli.c
|
@ -861,6 +861,16 @@ static void cliSet(char *cmdline)
|
|||
}
|
||||
}
|
||||
uartPrint("ERR: Unknown variable name\r\n");
|
||||
} else {
|
||||
// no equals, check for matching variables.
|
||||
for (i = 0; i < VALUE_COUNT; i++) {
|
||||
if (strstr(valueTable[i].name, cmdline)) {
|
||||
val = &valueTable[i];
|
||||
printf("%s = ", valueTable[i].name);
|
||||
cliPrintVar(val, 0);
|
||||
printf("\r\n");
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue