Skip to content

Commit

Permalink
happy tests
Browse files Browse the repository at this point in the history
  • Loading branch information
mck1117 committed Aug 29, 2024
1 parent ee7b26e commit c77f6fa
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion firmware/controllers/modules/map_averaging/map_averaging.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -196,14 +196,19 @@ void MapAveragingModule::onFastCallback() {

engine->engineState.mapAveragingDuration = 0;
}

}

// Callback to schedule the start of map averaging for each cylinder
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;
Expand Down

0 comments on commit c77f6fa

Please sign in to comment.