mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-19 14:25:20 +03:00
Merge pull request #3466 from basdelfos/feature_cleanup
Cleanup unused features
This commit is contained in:
commit
1a472b199c
2 changed files with 7 additions and 11 deletions
|
@ -162,12 +162,12 @@ static const char * const mixerNames[] = {
|
|||
|
||||
// sync this with features_e
|
||||
static const char * const featureNames[] = {
|
||||
"RX_PPM", "VBAT", "INFLIGHT_ACC_CAL", "RX_SERIAL", "MOTOR_STOP",
|
||||
"RX_PPM", "", "INFLIGHT_ACC_CAL", "RX_SERIAL", "MOTOR_STOP",
|
||||
"SERVO_TILT", "SOFTSERIAL", "GPS", "FAILSAFE",
|
||||
"SONAR", "TELEMETRY", "CURRENT_METER", "3D", "RX_PARALLEL_PWM",
|
||||
"SONAR", "TELEMETRY", "", "3D", "RX_PARALLEL_PWM",
|
||||
"RX_MSP", "RSSI_ADC", "LED_STRIP", "DISPLAY", "OSD",
|
||||
"UNUSED", "CHANNEL_FORWARDING", "TRANSPONDER", "AIRMODE",
|
||||
"SDCARD", "VTX", "RX_SPI", "SOFTSPI", "ESC_SENSOR", "ANTI_GRAVITY", "DYNAMIC_FILTER", NULL
|
||||
"", "CHANNEL_FORWARDING", "TRANSPONDER", "AIRMODE",
|
||||
"", "", "RX_SPI", "SOFTSPI", "ESC_SENSOR", "ANTI_GRAVITY", "DYNAMIC_FILTER", NULL
|
||||
};
|
||||
|
||||
// sync this with rxFailsafeChannelMode_e
|
||||
|
@ -1946,7 +1946,8 @@ static void cliFeature(char *cmdline)
|
|||
for (uint32_t i = 0; ; i++) {
|
||||
if (featureNames[i] == NULL)
|
||||
break;
|
||||
cliPrintf(" %s", featureNames[i]);
|
||||
if (strcmp(featureNames[i], "") != 0) //Skip unused
|
||||
cliPrintf(" %s", featureNames[i]);
|
||||
}
|
||||
cliPrintLinefeed();
|
||||
return;
|
||||
|
@ -2746,7 +2747,7 @@ static void cliSet(char *cmdline)
|
|||
break;
|
||||
}
|
||||
} else if ((valEnd == NULL) && (i == arrayLength - 1)) {
|
||||
array[i] = atoi(valPtr);
|
||||
array[i] = atoi(valPtr);
|
||||
|
||||
uint8_t *ptr = getValuePointer(val);
|
||||
memcpy(ptr, array, arrayLength);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue