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);