diff --git a/firmware/config/stm32f4ems/efifeatures.h b/firmware/config/stm32f4ems/efifeatures.h index 59055df134..0bbef9d6fa 100644 --- a/firmware/config/stm32f4ems/efifeatures.h +++ b/firmware/config/stm32f4ems/efifeatures.h @@ -167,8 +167,6 @@ #define BOARD_TLE9104_COUNT 0 #endif -#define EFI_ANALOG_SENSORS TRUE - #ifndef EFI_MAX_31855 #define EFI_MAX_31855 TRUE #endif diff --git a/firmware/controllers/sensors/impl/map.cpp b/firmware/controllers/sensors/impl/map.cpp index 3c28bfe25a..6350dc41fc 100644 --- a/firmware/controllers/sensors/impl/map.cpp +++ b/firmware/controllers/sensors/impl/map.cpp @@ -7,8 +7,6 @@ */ #include "pch.h" -#if EFI_ANALOG_SENSORS - /** * This function checks if Baro/MAP sensor value is inside of expected range * @return unchanged mapKPa parameter or NaN @@ -28,7 +26,6 @@ static float validateBaroMap(float mapKPa) { extern int mapMinBufferLength; static void printMAPInfo() { -#if EFI_ANALOG_SENSORS efiPrintf("instant value=%.2fkPa", Sensor::getOrZero(SensorType::Map)); #ifdef MODULE_MAP_AVERAGING @@ -61,7 +58,6 @@ static void printMAPInfo() { engineConfiguration->mapHighValueVoltage); } } -#endif /* EFI_ANALOG_SENSORS */ } #endif /* EFI_PROD_CODE */ @@ -86,10 +82,3 @@ void initMapDecoder() { addConsoleAction("mapinfo", printMAPInfo); #endif } - -#else /* EFI_ANALOG_SENSORS */ - -void initMapDecoder() { -} - -#endif /* EFI_ANALOG_SENSORS */ diff --git a/simulator/simulator/efifeatures.h b/simulator/simulator/efifeatures.h index 2fdd4b98eb..c8de62e998 100644 --- a/simulator/simulator/efifeatures.h +++ b/simulator/simulator/efifeatures.h @@ -106,7 +106,6 @@ #define EFI_ENGINE_SNIFFER TRUE #define FUEL_MATH_EXTREME_LOGGING FALSE -#define EFI_ANALOG_SENSORS TRUE #define EFI_INTERNAL_FLASH TRUE #define EFI_STORAGE_INT_FLASH TRUE #define EFI_FLASH_WRITE_THREAD TRUE diff --git a/unit_tests/efifeatures.h b/unit_tests/efifeatures.h index b9221f850a..09eea61791 100644 --- a/unit_tests/efifeatures.h +++ b/unit_tests/efifeatures.h @@ -62,8 +62,6 @@ #define EFI_SHAFT_POSITION_INPUT TRUE #define EFI_ENGINE_CONTROL TRUE -#define EFI_ANALOG_SENSORS TRUE - #define EFI_BOARD_TEST FALSE #define EFI_LUA TRUE