diff --git a/firmware/controllers/math/config_engine_specs.h b/firmware/controllers/math/config_engine_specs.h index 4284d1e990..e4287d0171 100644 --- a/firmware/controllers/math/config_engine_specs.h +++ b/firmware/controllers/math/config_engine_specs.h @@ -36,6 +36,7 @@ #define get_operationMode CONFIG_ACCESS_FOR_CONFIG_HEADER_ONLY(operationMode) #define get_specs_displacement CONFIG_ACCESS_FOR_CONFIG_HEADER_ONLY(specs.displacement) +#define get_specs_cylindersCount CONFIG_ACCESS_FOR_CONFIG_HEADER_ONLY(specs.cylindersCount) #define get_injector_flow CONFIG_ACCESS_FOR_CONFIG_HEADER_ONLY(injector.flow) #endif /* CONTROLLERS_MATH_CONFIG_ENGINE_SPECS_H_ */ diff --git a/firmware/controllers/math/speed_density.cpp b/firmware/controllers/math/speed_density.cpp index cf0f29d21a..e70e1b830e 100644 --- a/firmware/controllers/math/speed_density.cpp +++ b/firmware/controllers/math/speed_density.cpp @@ -89,7 +89,7 @@ static float getCycleAirMass(float volumetricEfficiency, float MAP, float tempK float getCylinderAirMass(float volumetricEfficiency, float MAP, float tempK DECLARE_GLOBAL_SUFFIX) { return getCycleAirMass(volumetricEfficiency, MAP, tempK PASS_GLOBAL_SUFFIX) - / get_specs_displacement; + / get_specs_cylindersCount; } /** diff --git a/unit_tests/main.cpp b/unit_tests/main.cpp index 4339dc4e05..6c9aeba332 100644 --- a/unit_tests/main.cpp +++ b/unit_tests/main.cpp @@ -57,6 +57,7 @@ GTEST_API_ int main(int argc, char **argv) { // uncomment if you only want to run selected tests //::testing::GTEST_FLAG(filter) = "*testFasterEngineSpinningUp*"; int result = RUN_ALL_TESTS(); + // windows ERRORLEVEL in Jenkins batch file seems to want negative value to detect failure return result == 0 ? 0 : -1; }