mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-17 21:35:44 +03:00
commit
823c761c01
1 changed files with 4 additions and 4 deletions
|
@ -171,7 +171,7 @@ static uint32_t bufferIndex = 0;
|
|||
static bool configIsInCopy = false;
|
||||
|
||||
static const char* const emptyName = "-";
|
||||
static const char* const emptryString = "";
|
||||
static const char* const emptyString = "";
|
||||
|
||||
#ifndef USE_QUAD_MIXER_ONLY
|
||||
// sync this with mixerMode_e
|
||||
|
@ -2227,14 +2227,14 @@ static void printFeature(uint8_t dumpMask, const featureConfig_t *featureConfig,
|
|||
const uint32_t mask = featureConfig->enabledFeatures;
|
||||
const uint32_t defaultMask = featureConfigDefault->enabledFeatures;
|
||||
for (uint32_t i = 0; featureNames[i]; i++) { // disabled features first
|
||||
if (strcmp(featureNames[i], emptryString) != 0) { //Skip unused
|
||||
if (strcmp(featureNames[i], emptyString) != 0) { //Skip unused
|
||||
const char *format = "feature -%s";
|
||||
cliDefaultPrintLinef(dumpMask, (defaultMask | ~mask) & (1 << i), format, featureNames[i]);
|
||||
cliDumpPrintLinef(dumpMask, (~defaultMask | mask) & (1 << i), format, featureNames[i]);
|
||||
}
|
||||
}
|
||||
for (uint32_t i = 0; featureNames[i]; i++) { // enabled features
|
||||
if (strcmp(featureNames[i], emptryString) != 0) { //Skip unused
|
||||
if (strcmp(featureNames[i], emptyString) != 0) { //Skip unused
|
||||
const char *format = "feature %s";
|
||||
if (defaultMask & (1 << i)) {
|
||||
cliDefaultPrintLinef(dumpMask, (~defaultMask | mask) & (1 << i), format, featureNames[i]);
|
||||
|
@ -2265,7 +2265,7 @@ static void cliFeature(char *cmdline)
|
|||
for (uint32_t i = 0; ; i++) {
|
||||
if (featureNames[i] == NULL)
|
||||
break;
|
||||
if (strcmp(featureNames[i], emptryString) != 0) //Skip unused
|
||||
if (strcmp(featureNames[i], emptyString) != 0) //Skip unused
|
||||
cliPrintf(" %s", featureNames[i]);
|
||||
}
|
||||
cliPrintLinefeed();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue