Skip to content

Commit

Permalink
analog sensors are never optional
Browse files Browse the repository at this point in the history
  • Loading branch information
mck1117 committed Sep 19, 2024
1 parent 096b0c4 commit ac8f2d2
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 16 deletions.
2 changes: 0 additions & 2 deletions firmware/config/stm32f4ems/efifeatures.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
11 changes: 0 additions & 11 deletions firmware/controllers/sensors/impl/map.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down Expand Up @@ -61,7 +58,6 @@ static void printMAPInfo() {
engineConfiguration->mapHighValueVoltage);
}
}
#endif /* EFI_ANALOG_SENSORS */
}
#endif /* EFI_PROD_CODE */

Expand All @@ -86,10 +82,3 @@ void initMapDecoder() {
addConsoleAction("mapinfo", printMAPInfo);
#endif
}

#else /* EFI_ANALOG_SENSORS */

void initMapDecoder() {
}

#endif /* EFI_ANALOG_SENSORS */
1 change: 0 additions & 1 deletion simulator/simulator/efifeatures.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 0 additions & 2 deletions unit_tests/efifeatures.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit ac8f2d2

Please sign in to comment.