1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-20 06:45:16 +03:00

Review changes

This commit is contained in:
Bas Delfos 2017-07-10 22:59:00 +02:00
parent b0b339fe31
commit bcb0181503
2 changed files with 5 additions and 10 deletions

View file

@ -161,12 +161,12 @@ static const char * const mixerNames[] = {
// sync this with features_e // sync this with features_e
static const char * const featureNames[] = { static const char * const featureNames[] = {
"RX_PPM", "UNUSED", "INFLIGHT_ACC_CAL", "RX_SERIAL", "MOTOR_STOP", "RX_PPM", "", "INFLIGHT_ACC_CAL", "RX_SERIAL", "MOTOR_STOP",
"SERVO_TILT", "SOFTSERIAL", "GPS", "FAILSAFE", "SERVO_TILT", "SOFTSERIAL", "GPS", "FAILSAFE",
"SONAR", "TELEMETRY", "UNUSED", "3D", "RX_PARALLEL_PWM", "SONAR", "TELEMETRY", "", "3D", "RX_PARALLEL_PWM",
"RX_MSP", "RSSI_ADC", "LED_STRIP", "DISPLAY", "OSD", "RX_MSP", "RSSI_ADC", "LED_STRIP", "DISPLAY", "OSD",
"UNUSED", "CHANNEL_FORWARDING", "TRANSPONDER", "AIRMODE", "", "CHANNEL_FORWARDING", "TRANSPONDER", "AIRMODE",
"UNUSED", "UNUSED", "RX_SPI", "SOFTSPI", "ESC_SENSOR", "ANTI_GRAVITY", "DYNAMIC_FILTER", NULL "", "", "RX_SPI", "SOFTSPI", "ESC_SENSOR", "ANTI_GRAVITY", "DYNAMIC_FILTER", NULL
}; };
// sync this with rxFailsafeChannelMode_e // sync this with rxFailsafeChannelMode_e
@ -1945,7 +1945,7 @@ static void cliFeature(char *cmdline)
for (uint32_t i = 0; ; i++) { for (uint32_t i = 0; ; i++) {
if (featureNames[i] == NULL) if (featureNames[i] == NULL)
break; break;
if (strcmp(featureNames[i], "UNUSED") != 0) if (strcmp(featureNames[i], "") != 0) //Skip unused
cliPrintf(" %s", featureNames[i]); cliPrintf(" %s", featureNames[i]);
} }
cliPrintLinefeed(); cliPrintLinefeed();

View file

@ -33,7 +33,6 @@
typedef enum { typedef enum {
FEATURE_RX_PPM = 1 << 0, FEATURE_RX_PPM = 1 << 0,
//UNUSED = 1 << 1,
FEATURE_INFLIGHT_ACC_CAL = 1 << 2, FEATURE_INFLIGHT_ACC_CAL = 1 << 2,
FEATURE_RX_SERIAL = 1 << 3, FEATURE_RX_SERIAL = 1 << 3,
FEATURE_MOTOR_STOP = 1 << 4, FEATURE_MOTOR_STOP = 1 << 4,
@ -43,7 +42,6 @@ typedef enum {
FEATURE_FAILSAFE = 1 << 8, FEATURE_FAILSAFE = 1 << 8,
FEATURE_SONAR = 1 << 9, FEATURE_SONAR = 1 << 9,
FEATURE_TELEMETRY = 1 << 10, FEATURE_TELEMETRY = 1 << 10,
//UNUSED = 1 << 11,
FEATURE_3D = 1 << 12, FEATURE_3D = 1 << 12,
FEATURE_RX_PARALLEL_PWM = 1 << 13, FEATURE_RX_PARALLEL_PWM = 1 << 13,
FEATURE_RX_MSP = 1 << 14, FEATURE_RX_MSP = 1 << 14,
@ -51,12 +49,9 @@ typedef enum {
FEATURE_LED_STRIP = 1 << 16, FEATURE_LED_STRIP = 1 << 16,
FEATURE_DASHBOARD = 1 << 17, FEATURE_DASHBOARD = 1 << 17,
FEATURE_OSD = 1 << 18, FEATURE_OSD = 1 << 18,
//UNUSED = 1 << 19,
FEATURE_CHANNEL_FORWARDING = 1 << 20, FEATURE_CHANNEL_FORWARDING = 1 << 20,
FEATURE_TRANSPONDER = 1 << 21, FEATURE_TRANSPONDER = 1 << 21,
FEATURE_AIRMODE = 1 << 22, FEATURE_AIRMODE = 1 << 22,
//UNUSED = 1 << 23,
//UNUSED = 1 << 24,
FEATURE_RX_SPI = 1 << 25, FEATURE_RX_SPI = 1 << 25,
FEATURE_SOFTSPI = 1 << 26, FEATURE_SOFTSPI = 1 << 26,
FEATURE_ESC_SENSOR = 1 << 27, FEATURE_ESC_SENSOR = 1 << 27,