From 8c80861846d3ef4b0dad79f026c51cb2670275a2 Mon Sep 17 00:00:00 2001 From: rusefi Date: Tue, 7 Mar 2017 01:40:25 -0500 Subject: [PATCH] #348 refactoring --- unit_tests/test_fuel_map.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/unit_tests/test_fuel_map.cpp b/unit_tests/test_fuel_map.cpp index 96c5551d97..de8666230a 100644 --- a/unit_tests/test_fuel_map.cpp +++ b/unit_tests/test_fuel_map.cpp @@ -90,7 +90,8 @@ void testFuelMap(void) { assertEquals(NAN, getIntakeAirTemperature(PASS_ENGINE_PARAMETER_F)); float iatCorrection = getIatCorrection(-KELV PASS_ENGINE_PARAMETER); assertEqualsM("IAT", 2, iatCorrection); - float cltCorrection = getCltFuelCorrection(getCoolantTemperature(PASS_ENGINE_PARAMETER_F) PASS_ENGINE_PARAMETER); + engine->engineState.clt = getCoolantTemperature(PASS_ENGINE_PARAMETER_F); + float cltCorrection = getCltFuelCorrection(engine->engineState.clt PASS_ENGINE_PARAMETER); assertEqualsM("CLT", 1, cltCorrection); float injectorLag = getInjectorLag(getVBatt(PASS_ENGINE_PARAMETER_F) PASS_ENGINE_PARAMETER); assertEqualsM("injectorLag", 0, injectorLag);