diff --git a/firmware/controllers/algo/engine_configuration.h b/firmware/controllers/algo/engine_configuration.h index 2b943237c7..a09d4b1da2 100644 --- a/firmware/controllers/algo/engine_configuration.h +++ b/firmware/controllers/algo/engine_configuration.h @@ -13,6 +13,10 @@ #include "crc.h" #include "engine_configuration_generated_structures.h" +#ifndef DEFAULT_ENGINE_TYPE +#define DEFAULT_ENGINE_TYPE CUSTOM_ENGINE +#endif + #define CLT_MANUAL_IDLE_CORRECTION config->cltIdleCorrBins, config->cltIdleCorr, CLT_CURVE_SIZE #define WARMUP_CLT_EXTRA_FUEL_CURVE config->cltFuelCorrBins, config->cltFuelCorr, CLT_CURVE_SIZE #define IAT_FUEL_CORRECTION_CURVE config->iatFuelCorrBins, config->iatFuelCorr, IAT_CURVE_SIZE diff --git a/firmware/global.h b/firmware/global.h index fd769dad3f..033fcd9f8f 100644 --- a/firmware/global.h +++ b/firmware/global.h @@ -1,7 +1,7 @@ /* * @file global.h * - * Global header file for firmware + * Global utility header file for firmware * * @date May 27, 2013 * @author Andrey Belomutskiy, (c) 2012-2017 @@ -18,10 +18,6 @@ extern "C" #include #include -#ifndef DEFAULT_ENGINE_TYPE -#define DEFAULT_ENGINE_TYPE CUSTOM_ENGINE -#endif - // this is about MISRA not liking 'time.h'. todo: figure out something #if defined __GNUC__ // GCC diff --git a/simulator/simulator/global.h b/simulator/simulator/global.h index 34f3855b19..f42a19bb84 100644 --- a/simulator/simulator/global.h +++ b/simulator/simulator/global.h @@ -10,8 +10,6 @@ #ifndef GLOBAL_H_ #define GLOBAL_H_ -#define DEFAULT_ENGINE_TYPE FORD_ESCORT_GT - #include #include diff --git a/unit_tests/global.h b/unit_tests/global.h index e601e6143b..5309118e0e 100644 --- a/unit_tests/global.h +++ b/unit_tests/global.h @@ -10,8 +10,6 @@ #ifndef GLOBAL_H_ #define GLOBAL_H_ -#define DEFAULT_ENGINE_TYPE CUSTOM_ENGINE - #include #include