diff --git a/firmware/controllers/algo/auto_generated_commonenum.cpp b/firmware/controllers/algo/auto_generated_commonenum.cpp index c5b4e37f5e..7241d5c463 100644 --- a/firmware/controllers/algo/auto_generated_commonenum.cpp +++ b/firmware/controllers/algo/auto_generated_commonenum.cpp @@ -723,6 +723,8 @@ case VVT_FIRST_HALF: return "VVT_FIRST_HALF"; case VVT_FORD_ST170: return "VVT_FORD_ST170"; +case VVT_HONDA_K_EXHAUST: + return "VVT_HONDA_K_EXHAUST"; case VVT_HONDA_K_INTAKE: return "VVT_HONDA_K_INTAKE"; case VVT_INACTIVE: diff --git a/firmware/controllers/trigger/trigger_central.cpp b/firmware/controllers/trigger/trigger_central.cpp index 9a27b35eb1..6c98d19903 100644 --- a/firmware/controllers/trigger/trigger_central.cpp +++ b/firmware/controllers/trigger/trigger_central.cpp @@ -180,8 +180,9 @@ static angle_t adjustCrankPhase(int camIndex) { case VVT_MAZDA_SKYACTIV: case VVT_MITSUBISHI_3A92: case VVT_MITSUBISHI_6G75: - case VVT_HONDA_K_INTAKE: + case VVT_HONDA_K_EXHAUST: return syncAndReport(tc, getCrankDivider(operationMode), engineConfiguration->vvtBooleanForVerySpecialCases ? 1 : 0); + case VVT_HONDA_K_INTAKE: case VVT_INACTIVE: // do nothing return 0; diff --git a/unit_tests/tests/trigger/test_real_k20.cpp b/unit_tests/tests/trigger/test_real_k20.cpp index dbab28ed4a..ad3c7d6a2a 100644 --- a/unit_tests/tests/trigger/test_real_k20.cpp +++ b/unit_tests/tests/trigger/test_real_k20.cpp @@ -13,7 +13,7 @@ TEST(realk20, cranking) { reader.processLine(ð); } - ASSERT_EQ(84, round(Sensor::getOrZero(SensorType::Rpm))); + ASSERT_EQ(1182, round(Sensor::getOrZero(SensorType::Rpm))); }