diff --git a/src/main/target/ALIENFLIGHTF1/config.c b/src/main/target/ALIENFLIGHTF1/config.c index 109d2ff41..1cc84e07d 100644 --- a/src/main/target/ALIENFLIGHTF1/config.c +++ b/src/main/target/ALIENFLIGHTF1/config.c @@ -36,6 +36,7 @@ #define BRUSHED_MOTORS_PWM_RATE 32000 // 32kHz +#ifdef TARGET_CONFIG // alternative defaults settings for AlienFlight targets void targetConfiguration(master_t *config) { @@ -62,3 +63,4 @@ void targetConfiguration(master_t *config) config->customMotorMixer[6] = (motorMixer_t){ 1.0f, -1.0f, 0.414178f, 1.0f }; // MIDREAR_R config->customMotorMixer[7] = (motorMixer_t){ 1.0f, 1.0f, 0.414178f, -1.0f }; // MIDREAR_L } +#endif diff --git a/src/main/target/ALIENFLIGHTF3/config.c b/src/main/target/ALIENFLIGHTF3/config.c index e87e13c03..95126f693 100644 --- a/src/main/target/ALIENFLIGHTF3/config.c +++ b/src/main/target/ALIENFLIGHTF3/config.c @@ -46,6 +46,7 @@ #define BRUSHED_MOTORS_PWM_RATE 32000 // 32kHz +#ifdef TARGET_CONFIG // alternative defaults settings for AlienFlight targets void targetConfiguration(master_t *config) { @@ -105,3 +106,4 @@ void targetConfiguration(master_t *config) config->customMotorMixer[6] = (motorMixer_t){ 1.0f, -1.0f, 0.414178f, 1.0f }; // MIDREAR_R config->customMotorMixer[7] = (motorMixer_t){ 1.0f, 1.0f, 0.414178f, -1.0f }; // MIDREAR_L } +#endif diff --git a/src/main/target/ALIENFLIGHTF4/config.c b/src/main/target/ALIENFLIGHTF4/config.c index 510dbe892..49d7f1442 100644 --- a/src/main/target/ALIENFLIGHTF4/config.c +++ b/src/main/target/ALIENFLIGHTF4/config.c @@ -54,6 +54,7 @@ #define BRUSHED_MOTORS_PWM_RATE 32000 // 32kHz +#ifdef TARGET_CONFIG // alternative defaults settings for AlienFlight targets void targetConfiguration(master_t *config) { @@ -96,3 +97,4 @@ void targetConfiguration(master_t *config) config->customMotorMixer[6] = (motorMixer_t){ 1.0f, -1.0f, 0.414178f, 1.0f }; // MIDREAR_R config->customMotorMixer[7] = (motorMixer_t){ 1.0f, 1.0f, 0.414178f, -1.0f }; // MIDREAR_L } +#endif diff --git a/src/main/target/BETAFLIGHTF3/config.c b/src/main/target/BETAFLIGHTF3/config.c index b65b136e0..7381d4b5f 100755 --- a/src/main/target/BETAFLIGHTF3/config.c +++ b/src/main/target/BETAFLIGHTF3/config.c @@ -35,10 +35,11 @@ #include "config/config_profile.h" #include "config/config_master.h" +#ifdef TARGET_CONFIG void targetConfiguration(master_t *config) { UNUSED(config); batteryConfig->currentMeterScale = 235; } - +#endif diff --git a/src/main/target/BLUEJAYF4/config.c b/src/main/target/BLUEJAYF4/config.c index d774c765e..fa5d9cfc0 100644 --- a/src/main/target/BLUEJAYF4/config.c +++ b/src/main/target/BLUEJAYF4/config.c @@ -29,6 +29,7 @@ #include "hardware_revision.h" +#ifdef TARGET_CONFIG // alternative defaults settings for BlueJayF4 targets void targetConfiguration(master_t *config) { @@ -58,3 +59,4 @@ void targetValidateConfiguration(master_t *config) } } } +#endif diff --git a/src/main/target/COLIBRI/config.c b/src/main/target/COLIBRI/config.c index 5ae9168cf..00fa98733 100644 --- a/src/main/target/COLIBRI/config.c +++ b/src/main/target/COLIBRI/config.c @@ -35,7 +35,7 @@ #include "config/config_profile.h" #include "config/config_master.h" - +#ifdef TARGET_CONFIG // alternative defaults settings for Colibri/Gemini targets void targetConfiguration(master_t *config) { @@ -54,3 +54,4 @@ void targetConfiguration(master_t *config) config->profile[0].controlRateProfile[0].tpa_breakpoint = 1700; config->serialConfig.portConfigs[2].functionMask = FUNCTION_RX_SERIAL; } +#endif diff --git a/src/main/target/COLIBRI_RACE/config.c b/src/main/target/COLIBRI_RACE/config.c index 535da3d20..2326168fe 100644 --- a/src/main/target/COLIBRI_RACE/config.c +++ b/src/main/target/COLIBRI_RACE/config.c @@ -29,6 +29,7 @@ #include "config/feature.h" #include "io/ledstrip.h" +#ifdef TARGET_CONFIG void targetApplyDefaultLedStripConfig(ledConfig_t *ledConfigs) { const ledConfig_t defaultLedStripConfig[] = { @@ -95,5 +96,5 @@ void targetConfiguration(master_t *config) config->profile[0].controlRateProfile[0].rates[FD_YAW] = 80; targetApplyDefaultLedStripConfig(config->ledStripConfig.ledConfigs); - } +#endif diff --git a/src/main/target/KISSFC/config.c b/src/main/target/KISSFC/config.c index 64d8ac31e..a98408928 100755 --- a/src/main/target/KISSFC/config.c +++ b/src/main/target/KISSFC/config.c @@ -37,7 +37,7 @@ #include "sensors/boardalignment.h" - +#ifdef TARGET_CONFIG void targetConfiguration(master_t *config) { UNUSED(config); @@ -49,4 +49,4 @@ void targetConfiguration(master_t *config) config->boardAlignment.yawDegrees = 0; #endif } - +#endif diff --git a/src/main/target/MOTOLAB/config.c b/src/main/target/MOTOLAB/config.c index daee3f7f3..ffdb5bef7 100755 --- a/src/main/target/MOTOLAB/config.c +++ b/src/main/target/MOTOLAB/config.c @@ -22,10 +22,11 @@ #include "config/config_master.h" - +#ifdef TARGET_CONFIG // Motolab target supports 2 different type of boards Tornado / Cyclone. void targetConfiguration(master_t *config) { config->gyroConfig.gyro_sync_denom = 4; config->pidConfig.pid_process_denom = 1; } +#endif diff --git a/src/main/target/MULTIFLITEPICO/config.c b/src/main/target/MULTIFLITEPICO/config.c index 70ac3912b..11c72d8b4 100755 --- a/src/main/target/MULTIFLITEPICO/config.c +++ b/src/main/target/MULTIFLITEPICO/config.c @@ -39,6 +39,7 @@ #include "config/config_profile.h" #include "config/config_master.h" +#ifdef TARGET_CONFIG // alternative defaults settings for MULTIFLITEPICO targets void targetConfiguration(master_t *config) { @@ -83,5 +84,5 @@ void targetConfiguration(master_t *config) config->profile[0].controlRateProfile[0].rcRate8 = 70; config->profile[0].pidProfile.I8[PIDLEVEL] = 40; - } +#endif diff --git a/src/main/target/NAZE/config.c b/src/main/target/NAZE/config.c index 3319fa9cf..68b8ca263 100755 --- a/src/main/target/NAZE/config.c +++ b/src/main/target/NAZE/config.c @@ -37,6 +37,7 @@ #include "hardware_revision.h" +#ifdef TARGET_CONFIG void targetConfiguration(master_t *config) { UNUSED(config); @@ -97,4 +98,4 @@ void targetConfiguration(master_t *config) } #endif } - +#endif diff --git a/src/main/target/PIKOBLX/config.c b/src/main/target/PIKOBLX/config.c index 2850ace0e..72171529e 100644 --- a/src/main/target/PIKOBLX/config.c +++ b/src/main/target/PIKOBLX/config.c @@ -21,6 +21,8 @@ #include "config/config_master.h" +#ifdef TARGET_CONFIG void targetConfiguration(master_t *config) { config->batteryConfig.currentMeterScale = 125; } +#endif diff --git a/src/main/target/RACEBASE/config.c b/src/main/target/RACEBASE/config.c index 62a2f3f34..37873b0b1 100755 --- a/src/main/target/RACEBASE/config.c +++ b/src/main/target/RACEBASE/config.c @@ -24,7 +24,7 @@ #include "config/config_master.h" - +#ifdef TARGET_CONFIG // alternative defaults settings for COLIBRI RACE targets void targetConfiguration(master_t *config) { @@ -32,3 +32,4 @@ void targetConfiguration(master_t *config) config->rxConfig.rssi_scale = 19; config->rxConfig.serialrx_provider = SERIALRX_SBUS; } +#endif diff --git a/src/main/target/RG_SSD_F3/config.c b/src/main/target/RG_SSD_F3/config.c index ae0ee4d6f..f1cfa35f6 100644 --- a/src/main/target/RG_SSD_F3/config.c +++ b/src/main/target/RG_SSD_F3/config.c @@ -21,7 +21,9 @@ #include "config/config_master.h" +#ifdef TARGET_CONFIG void targetConfiguration(master_t *config) { config->batteryConfig.vbatmaxcellvoltage = 45; config->batteryConfig.currentMeterScale = 119; } +#endif diff --git a/src/main/target/SPRACINGF3EVO/config.c b/src/main/target/SPRACINGF3EVO/config.c index 80cca5b72..ccdb8dcbb 100644 --- a/src/main/target/SPRACINGF3EVO/config.c +++ b/src/main/target/SPRACINGF3EVO/config.c @@ -19,11 +19,9 @@ #include "config/config_master.h" #ifdef TARGET_CONFIG - void targetConfiguration(master_t *config) { // Temporary workaround: Disable SDCard DMA by default since it causes errors on this target config->sdcardConfig.useDma = false; } - #endif diff --git a/src/main/target/TINYFISH/config.c b/src/main/target/TINYFISH/config.c index 51834b778..ec22348b2 100644 --- a/src/main/target/TINYFISH/config.c +++ b/src/main/target/TINYFISH/config.c @@ -33,6 +33,7 @@ #define TARGET_CPU_VOLTAGE 3.0 +#ifdef TARGET_CONFIG // set default settings to match our target void targetConfiguration(master_t *config) { @@ -53,4 +54,4 @@ void targetConfiguration(master_t *config) intFeatureSet(FEATURE_CURRENT_METER | FEATURE_VBAT, &config->enabledFeatures); } - +#endif