From 2c468ec334401a6e99af3cedba9317d5fe12ad1c Mon Sep 17 00:00:00 2001 From: Dominic Clifton Date: Wed, 22 May 2019 14:56:06 +0200 Subject: [PATCH] SPRACINGF3NEO - Remove some unneeded target config. The defaults in pgResetFn_barometerConfig and pgResetFn_compassConfig are fine. --- src/main/target/SPRACINGF3NEO/config.c | 22 ---------------------- 1 file changed, 22 deletions(-) diff --git a/src/main/target/SPRACINGF3NEO/config.c b/src/main/target/SPRACINGF3NEO/config.c index 75b6d4371d..186b30b83e 100644 --- a/src/main/target/SPRACINGF3NEO/config.c +++ b/src/main/target/SPRACINGF3NEO/config.c @@ -23,34 +23,14 @@ #include "platform.h" -#include "common/axis.h" - -#include "drivers/sensor.h" -#include "drivers/compass/compass.h" #include "drivers/serial.h" -#include "fc/rc_controls.h" - -#include "flight/failsafe.h" -#include "flight/mixer.h" -#include "flight/pid.h" - #include "pg/rx.h" - #include "rx/rx.h" #include "io/serial.h" - #include "telemetry/telemetry.h" -#include "sensors/sensors.h" -#include "sensors/compass.h" -#include "sensors/barometer.h" - -#include "config/feature.h" - -#include "fc/config.h" - #ifdef USE_TARGET_CONFIG #include "config_helper.h" @@ -68,8 +48,6 @@ static targetSerialPortFunction_t targetSerialPortFunction[] = { void targetConfiguration(void) { - barometerConfigMutable()->baro_hardware = BARO_DEFAULT; - compassConfigMutable()->mag_hardware = MAG_DEFAULT; targetSerialPortFunctionConfig(targetSerialPortFunction, ARRAYLEN(targetSerialPortFunction)); telemetryConfigMutable()->halfDuplex = true; }