From 099f7d5a86c0d85b65c7f0a64971e22572ff5ae8 Mon Sep 17 00:00:00 2001 From: Andrey Date: Sat, 11 Dec 2021 02:56:19 -0500 Subject: [PATCH] MAP phase sensing #3544 limiting to below cranking RPM limit --- firmware/controllers/trigger/trigger_central.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/firmware/controllers/trigger/trigger_central.cpp b/firmware/controllers/trigger/trigger_central.cpp index 5af9ec5e66..2281ec9030 100644 --- a/firmware/controllers/trigger/trigger_central.cpp +++ b/firmware/controllers/trigger/trigger_central.cpp @@ -669,7 +669,8 @@ void TriggerCentral::handleShaftSignal(trigger_event_e signal, efitick_t timesta #endif // EFI_TUNER_STUDIO #if WITH_TS_STATE - if (engineConfiguration->vvtMode[0] == VVT_MAP_V_TWIN_ANOTHER) { + if (engineConfiguration->vvtMode[0] == VVT_MAP_V_TWIN_ANOTHER && + Sensor::getOrZero(SensorType::Rpm) < engineConfiguration->cranking.rpm) { // we are trying to figure out which 360 half of the total 720 degree cycle is which, so we compare those in 360 degree sense. auto toothAngle360 = toothAngle; while (toothAngle360 >= 360) {