From d52b00c7c80a56d9a78e80fba4dcc60980cfaf95 Mon Sep 17 00:00:00 2001 From: Matthew Kennedy Date: Tue, 7 Jan 2025 15:31:01 -0800 Subject: [PATCH] MIL cleanup --- firmware/console/binary/tunerstudio.cpp | 1 - firmware/controllers/engine_controller.cpp | 1 - .../controllers/gauges/malfunction_indicator.cpp | 13 ------------- 3 files changed, 15 deletions(-) diff --git a/firmware/console/binary/tunerstudio.cpp b/firmware/console/binary/tunerstudio.cpp index c0ac9eee2e..3d9c487679 100644 --- a/firmware/console/binary/tunerstudio.cpp +++ b/firmware/console/binary/tunerstudio.cpp @@ -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" diff --git a/firmware/controllers/engine_controller.cpp b/firmware/controllers/engine_controller.cpp index 157081f0be..b5286da8af 100644 --- a/firmware/controllers/engine_controller.cpp +++ b/firmware/controllers/engine_controller.cpp @@ -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" diff --git a/firmware/controllers/gauges/malfunction_indicator.cpp b/firmware/controllers/gauges/malfunction_indicator.cpp index 027058a1e9..4bf19b7029 100644 --- a/firmware/controllers/gauges/malfunction_indicator.cpp +++ b/firmware/controllers/gauges/malfunction_indicator.cpp @@ -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 @@ -106,13 +104,6 @@ class MILController : public PeriodicController { 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); } @@ -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 */