mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-14 20:10:18 +03:00
Added profile / rateprofile info to 'get'.
This commit is contained in:
parent
532e8afe61
commit
227c08f94e
1 changed files with 13 additions and 0 deletions
|
@ -3308,6 +3308,19 @@ STATIC_UNIT_TESTED void cliGet(char *cmdline)
|
||||||
cliPrintf("%s = ", valueTable[i].name);
|
cliPrintf("%s = ", valueTable[i].name);
|
||||||
cliPrintVar(val, 0);
|
cliPrintVar(val, 0);
|
||||||
cliPrintLinefeed();
|
cliPrintLinefeed();
|
||||||
|
switch (val->type & VALUE_SECTION_MASK) {
|
||||||
|
case PROFILE_VALUE:
|
||||||
|
cliProfile("");
|
||||||
|
|
||||||
|
break;
|
||||||
|
case PROFILE_RATE_VALUE:
|
||||||
|
cliRateProfile("");
|
||||||
|
|
||||||
|
break;
|
||||||
|
default:
|
||||||
|
|
||||||
|
break;
|
||||||
|
}
|
||||||
cliPrintVarRange(val);
|
cliPrintVarRange(val);
|
||||||
cliPrintVarDefault(val);
|
cliPrintVarDefault(val);
|
||||||
matchedCommands++;
|
matchedCommands++;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue