From c77f6fa50ce898cb26d8d438150100c6811afdae Mon Sep 17 00:00:00 2001 From: Matthew Kennedy Date: Thu, 29 Aug 2024 15:42:26 -0700 Subject: [PATCH] happy tests --- .../controllers/modules/map_averaging/map_averaging.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/firmware/controllers/modules/map_averaging/map_averaging.cpp b/firmware/controllers/modules/map_averaging/map_averaging.cpp index 4d4097abae..cb754ad886 100644 --- a/firmware/controllers/modules/map_averaging/map_averaging.cpp +++ b/firmware/controllers/modules/map_averaging/map_averaging.cpp @@ -196,7 +196,6 @@ void MapAveragingModule::onFastCallback() { engine->engineState.mapAveragingDuration = 0; } - } // Callback to schedule the start of map averaging for each cylinder @@ -204,6 +203,12 @@ void MapAveragingModule::onEnginePhase(float rpm, efitick_t edgeTimestamp, float currentPhase, float nextPhase) { + + if constexpr (EFI_UNIT_TEST) { + // TODO: unit test MAP sampling scheduling + return; + } + #if EFI_ENGINE_CONTROL if (!isValidRpm(rpm)) { return;