Skip to content

Commit

Permalink
MIL cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
mck1117 committed Jan 7, 2025
1 parent 8bd85de commit d52b00c
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 15 deletions.
1 change: 0 additions & 1 deletion firmware/console/binary/tunerstudio.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,6 @@
#include "flash_main.h"

#include "tunerstudio_io.h"
#include "malfunction_central.h"
#include "console_io.h"
#include "bluetooth.h"
#include "tunerstudio_io.h"
Expand Down
1 change: 0 additions & 1 deletion firmware/controllers/engine_controller.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@
#include "bench_test.h"
#include "electronic_throttle.h"
#include "high_pressure_fuel_pump.h"
#include "malfunction_central.h"
#include "malfunction_indicator.h"
#include "speed_density.h"
#include "local_version_holder.h"
Expand Down
13 changes: 0 additions & 13 deletions firmware/controllers/gauges/malfunction_indicator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,6 @@

#include "periodic_thread_controller.h"

#define TEST_MIL_CODE FALSE

#define MFI_LONG_BLINK 1500
#define MFI_SHORT_BLINK 400
#define MFI_BLINK_SEPARATOR 400
Expand Down Expand Up @@ -106,13 +104,6 @@ class MILController : public PeriodicController<UTILITY_THREAD_STACK_SIZE> {

static MILController instance;

#if TEST_MIL_CODE
static void testMil() {
addError(ObdCode::OBD_Engine_Coolant_Temperature_Circuit_Malfunction);
addError(ObdCode::OBD_Intake_Air_Temperature_Circuit_Malfunction);
}
#endif /* TEST_MIL_CODE */

bool isMilEnabled() {
return isBrainPinValid(engineConfiguration->malfunctionIndicatorPin);
}
Expand All @@ -123,10 +114,6 @@ void initMalfunctionIndicator(void) {
}
instance.setPeriod(10 /*ms*/);
instance.start();

#if TEST_MIL_CODE
addConsoleAction("testmil", testMil);
#endif /* TEST_MIL_CODE */
}

#endif /* EFI_MALFUNCTION_INDICATOR */

0 comments on commit d52b00c

Please sign in to comment.