diff --git a/firmware/config/engines/custom_engine.cpp b/firmware/config/engines/custom_engine.cpp index fad6a0db6a..f50030f370 100644 --- a/firmware/config/engines/custom_engine.cpp +++ b/firmware/config/engines/custom_engine.cpp @@ -472,7 +472,7 @@ static void mreBoardOldTest() { #if (BOARD_TLE8888_COUNT > 0) engineConfiguration->debugMode = DBG_TLE8888; - engineConfiguration->triggerSimulatorFrequency = HW_CHECK_RPM; + engineConfiguration->triggerSimulatorFrequency = 202; // set cranking_rpm 500 engineConfiguration->cranking.rpm = 100; // set cranking_dwell 200 diff --git a/firmware/controllers/algo/engine.cpp b/firmware/controllers/algo/engine.cpp index d26bbc37af..70b0d42296 100644 --- a/firmware/controllers/algo/engine.cpp +++ b/firmware/controllers/algo/engine.cpp @@ -179,12 +179,13 @@ void Engine::periodicSlowCallback() { fail("HW_CHECK_ALWAYS_STIMULATE required to have self-stimulation") #endif + int hwCheckRpm = 204; if (secondsNow > 2 && secondsNow < 180) { - assertCloseTo("RPM", Sensor::get(SensorType::Rpm).Value, HW_CHECK_RPM); + assertCloseTo("RPM", Sensor::get(SensorType::Rpm).Value, hwCheckRpm); } else if (!hasFirmwareError() && secondsNow > 180) { static bool isHappyTest = false; if (!isHappyTest) { - setTriggerEmulatorRPM(5 * HW_CHECK_RPM); + setTriggerEmulatorRPM(5 * hwCheckRpm); efiPrintf("TEST PASSED"); isHappyTest = true; } diff --git a/firmware/controllers/algo/engine.h b/firmware/controllers/algo/engine.h index 3fcdee0be3..c1b6363351 100644 --- a/firmware/controllers/algo/engine.h +++ b/firmware/controllers/algo/engine.h @@ -328,8 +328,6 @@ void scheduleReboot(); bool isLockedFromUser(); void unlockEcu(int password); -#define HW_CHECK_RPM 200 - // These externs aren't needed for unit tests - everything is injected instead #if !EFI_UNIT_TEST extern Engine ___engine;