Disable unused LED ring code.
Although it was compiled in for the NAZE target the ledringDetect() method is never called. Removing the feature for now too.
This commit is contained in:
parent
0d3353c080
commit
fd9d58110b
1
Makefile
1
Makefile
|
@ -182,7 +182,6 @@ NAZE_SRC = startup_stm32f10x_md_gcc.S \
|
||||||
drivers/compass_hmc5883l.c \
|
drivers/compass_hmc5883l.c \
|
||||||
drivers/gpio_stm32f10x.c \
|
drivers/gpio_stm32f10x.c \
|
||||||
drivers/light_led_stm32f10x.c \
|
drivers/light_led_stm32f10x.c \
|
||||||
drivers/light_ledring.c \
|
|
||||||
drivers/sonar_hcsr04.c \
|
drivers/sonar_hcsr04.c \
|
||||||
drivers/pwm_mapping.c \
|
drivers/pwm_mapping.c \
|
||||||
drivers/pwm_output.c \
|
drivers/pwm_output.c \
|
||||||
|
|
|
@ -76,7 +76,7 @@ void mixerUseConfigs(servoParam_t *servoConfToUse, flight3DConfig_t *flight3DCon
|
||||||
#define FLASH_WRITE_ADDR (0x08000000 + (uint32_t)((FLASH_PAGE_SIZE * FLASH_PAGE_COUNT) - FLASH_TO_RESERVE_FOR_CONFIG)) // use the last flash pages for storage
master_t masterConfig; // master config struct with data independent from profiles
|
#define FLASH_WRITE_ADDR (0x08000000 + (uint32_t)((FLASH_PAGE_SIZE * FLASH_PAGE_COUNT) - FLASH_TO_RESERVE_FOR_CONFIG)) // use the last flash pages for storage
master_t masterConfig; // master config struct with data independent from profiles
|
||||||
profile_t currentProfile; // profile config struct
|
profile_t currentProfile; // profile config struct
|
||||||
|
|
||||||
static const uint8_t EEPROM_CONF_VERSION = 71;
|
static const uint8_t EEPROM_CONF_VERSION = 72;
|
||||||
|
|
||||||
static void resetAccelerometerTrims(flightDynamicsTrims_t *accelerometerTrims)
|
static void resetAccelerometerTrims(flightDynamicsTrims_t *accelerometerTrims)
|
||||||
{
|
{
|
||||||
|
|
|
@ -25,16 +25,15 @@ typedef enum {
|
||||||
FEATURE_MOTOR_STOP = 1 << 4,
|
FEATURE_MOTOR_STOP = 1 << 4,
|
||||||
FEATURE_SERVO_TILT = 1 << 5,
|
FEATURE_SERVO_TILT = 1 << 5,
|
||||||
FEATURE_SOFTSERIAL = 1 << 6,
|
FEATURE_SOFTSERIAL = 1 << 6,
|
||||||
FEATURE_LED_RING = 1 << 7,
|
FEATURE_GPS = 1 << 7,
|
||||||
FEATURE_GPS = 1 << 8,
|
FEATURE_FAILSAFE = 1 << 8,
|
||||||
FEATURE_FAILSAFE = 1 << 9,
|
FEATURE_SONAR = 1 << 9,
|
||||||
FEATURE_SONAR = 1 << 10,
|
FEATURE_TELEMETRY = 1 << 10,
|
||||||
FEATURE_TELEMETRY = 1 << 11,
|
FEATURE_CURRENT_METER = 1 << 11,
|
||||||
FEATURE_CURRENT_METER = 1 << 12,
|
FEATURE_3D = 1 << 12,
|
||||||
FEATURE_3D = 1 << 13,
|
FEATURE_RX_PARALLEL_PWM = 1 << 13,
|
||||||
FEATURE_RX_PARALLEL_PWM = 1 << 14,
|
FEATURE_RX_MSP = 1 << 14,
|
||||||
FEATURE_RX_MSP = 1 << 15,
|
FEATURE_RSSI_ADC = 1 << 15
|
||||||
FEATURE_RSSI_ADC = 1 << 16
|
|
||||||
} AvailableFeatures;
|
} AvailableFeatures;
|
||||||
|
|
||||||
bool feature(uint32_t mask);
|
bool feature(uint32_t mask);
|
||||||
|
|
|
@ -101,7 +101,7 @@ static const char * const mixerNames[] = {
|
||||||
// sync this with AvailableFeatures enum from board.h
|
// sync this with AvailableFeatures enum from board.h
|
||||||
static const char * const featureNames[] = {
|
static const char * const featureNames[] = {
|
||||||
"RX_PPM", "VBAT", "INFLIGHT_ACC_CAL", "RX_SERIAL", "MOTOR_STOP",
|
"RX_PPM", "VBAT", "INFLIGHT_ACC_CAL", "RX_SERIAL", "MOTOR_STOP",
|
||||||
"SERVO_TILT", "SOFTSERIAL", "LED_RING", "GPS", "FAILSAFE",
|
"SERVO_TILT", "SOFTSERIAL", "GPS", "FAILSAFE",
|
||||||
"SONAR", "TELEMETRY", "CURRENT_METER", "3D", "RX_PARALLEL_PWM",
|
"SONAR", "TELEMETRY", "CURRENT_METER", "3D", "RX_PARALLEL_PWM",
|
||||||
"RX_MSP", "RSSI_ADC", NULL
|
"RX_MSP", "RSSI_ADC", NULL
|
||||||
};
|
};
|
||||||
|
|
|
@ -36,7 +36,6 @@
|
||||||
#define ACC
|
#define ACC
|
||||||
#define MAG
|
#define MAG
|
||||||
#define BARO
|
#define BARO
|
||||||
#define LEDRING
|
|
||||||
#define SONAR
|
#define SONAR
|
||||||
#define BUZZER
|
#define BUZZER
|
||||||
#define LED0
|
#define LED0
|
||||||
|
|
Loading…
Reference in New Issue