From 43e71c12fa4fd769bf2f43caf80fffab661ec142 Mon Sep 17 00:00:00 2001 From: Andrey Date: Sun, 27 Jun 2021 11:38:42 -0400 Subject: [PATCH] more minimal version of fix trigger replay #2874 --- unit_tests/logicdata_csv_reader.cpp | 2 +- unit_tests/tests/trigger/test_real_volkswagen.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/unit_tests/logicdata_csv_reader.cpp b/unit_tests/logicdata_csv_reader.cpp index 4a7288b3c6..039e4027cb 100644 --- a/unit_tests/logicdata_csv_reader.cpp +++ b/unit_tests/logicdata_csv_reader.cpp @@ -65,7 +65,7 @@ void CsvReader::processLine(EngineTestHelper *eth) { trigger_event_e event = (newState[index] ? riseEvents : fallEvents)[index]; efitick_t nowNt = getTimeNowNt(); - engine->triggerCentral.handleShaftSignal(event, nowNt PASS_ENGINE_PARAMETER_SUFFIX); + handleShaftSignal2(event, nowNt PASS_ENGINE_PARAMETER_SUFFIX); currentState[index] = newState[index]; } diff --git a/unit_tests/tests/trigger/test_real_volkswagen.cpp b/unit_tests/tests/trigger/test_real_volkswagen.cpp index 85b8076821..16c3933f84 100644 --- a/unit_tests/tests/trigger/test_real_volkswagen.cpp +++ b/unit_tests/tests/trigger/test_real_volkswagen.cpp @@ -23,7 +23,7 @@ TEST(crankingVW, vwRealCrankingFromFile) { reader.processLine(ð); } - ASSERT_EQ( 3, eth.recentWarnings()->getCount())<< "warningCounter#vwRealCranking"; + ASSERT_EQ( 1, eth.recentWarnings()->getCount())<< "warningCounter#vwRealCranking"; ASSERT_EQ( 1683, GET_RPM())<< reader.lineIndex; }