CF/BF - Reduce flash usage by re-using a couple of strings.

This commit is contained in:
Hydra 2017-04-08 22:44:37 +01:00 committed by Dominic Clifton
parent 18454ad705
commit 4653cfd4ad
1 changed files with 5 additions and 5 deletions

View File

@ -2973,11 +2973,11 @@ static void cliFeature(char *cmdline)
}
cliPrint("\r\n");
} else if (strncasecmp(cmdline, "list", len) == 0) {
cliPrint("Available: ");
cliPrint("Available:");
for (uint32_t i = 0; ; i++) {
if (featureNames[i] == NULL)
break;
cliPrintf("%s ", featureNames[i]);
cliPrintf(" %s", featureNames[i]);
}
cliPrint("\r\n");
return;
@ -3060,7 +3060,7 @@ static void cliBeeper(char *cmdline)
} else if (strncasecmp(cmdline, "list", len) == 0) {
cliPrint("Available:");
for (uint32_t i = 0; i < beeperCount; i++)
cliPrintf(" %s", beeperNameForTableIndex(i));
cliPrintf(" %s", beeperNameForTableIndex(i));
cliPrint("\r\n");
return;
} else {
@ -3360,11 +3360,11 @@ static void cliMixer(char *cmdline)
cliPrintf("Mixer: %s\r\n", mixerNames[mixerConfig()->mixerMode - 1]);
return;
} else if (strncasecmp(cmdline, "list", len) == 0) {
cliPrint("Available mixers: ");
cliPrint("Available:");
for (uint32_t i = 0; ; i++) {
if (mixerNames[i] == NULL)
break;
cliPrintf("%s ", mixerNames[i]);
cliPrintf(" %s", mixerNames[i]);
}
cliPrint("\r\n");
return;