mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-20 06:45:16 +03:00
Cleaned up output of CLI diff / dump.
This commit is contained in:
parent
792941606f
commit
8cf700f7f4
1 changed files with 1 additions and 2 deletions
|
@ -3443,11 +3443,9 @@ static void cliDumpProfile(uint8_t profileIndex, uint8_t dumpMask, const master_
|
||||||
#ifdef USE_PARAMETER_GROUPS
|
#ifdef USE_PARAMETER_GROUPS
|
||||||
(void)(defaultConfig);
|
(void)(defaultConfig);
|
||||||
dumpAllValues(PROFILE_VALUE, dumpMask);
|
dumpAllValues(PROFILE_VALUE, dumpMask);
|
||||||
dumpAllValues(PROFILE_RATE_VALUE, dumpMask);
|
|
||||||
#else
|
#else
|
||||||
dumpValues(PROFILE_VALUE, dumpMask, defaultConfig);
|
dumpValues(PROFILE_VALUE, dumpMask, defaultConfig);
|
||||||
#endif
|
#endif
|
||||||
cliRateProfile("");
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static void cliDumpRateProfile(uint8_t rateProfileIndex, uint8_t dumpMask, const master_t *defaultConfig)
|
static void cliDumpRateProfile(uint8_t rateProfileIndex, uint8_t dumpMask, const master_t *defaultConfig)
|
||||||
|
@ -4148,6 +4146,7 @@ static void printConfig(char *cmdline, bool doDiff)
|
||||||
cliPrint("save");
|
cliPrint("save");
|
||||||
} else {
|
} else {
|
||||||
cliDumpProfile(getCurrentProfileIndex(), dumpMask, &defaultConfig);
|
cliDumpProfile(getCurrentProfileIndex(), dumpMask, &defaultConfig);
|
||||||
|
|
||||||
cliDumpRateProfile(getCurrentControlRateProfileIndex(), dumpMask, &defaultConfig);
|
cliDumpRateProfile(getCurrentControlRateProfileIndex(), dumpMask, &defaultConfig);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue