1
0
Fork 0
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:
mikeller 2018-06-02 22:27:16 +12:00
parent 532e8afe61
commit 227c08f94e

View file

@ -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++;