From 907e058d95d801bc3fac3852b6a994fcac6597dd Mon Sep 17 00:00:00 2001 From: rusefi Date: Sat, 25 Mar 2017 21:03:18 -0400 Subject: [PATCH] refactoring: removing unused parameter --- firmware/controllers/algo/fuel_math.cpp | 2 +- firmware/controllers/math/speed_density.cpp | 4 +--- firmware/controllers/math/speed_density.h | 2 +- 3 files changed, 3 insertions(+), 5 deletions(-) diff --git a/firmware/controllers/algo/fuel_math.cpp b/firmware/controllers/algo/fuel_math.cpp index 4758e698e2..dacb5bdab6 100644 --- a/firmware/controllers/algo/fuel_math.cpp +++ b/firmware/controllers/algo/fuel_math.cpp @@ -75,7 +75,7 @@ floatms_t getBaseFuel(int rpm DECLARE_ENGINE_PARAMETER_S) { ENGINE(engineState.tpsAccelEnrich) = ENGINE(tpsAccelEnrichment.getTpsEnrichment(PASS_ENGINE_PARAMETER_F)); if (CONFIG(fuelAlgorithm) == LM_SPEED_DENSITY) { - engine->engineState.baseFuel = getSpeedDensityFuel(rpm PASS_ENGINE_PARAMETER); + engine->engineState.baseFuel = getSpeedDensityFuel(PASS_ENGINE_PARAMETER_F); } else if (engineConfiguration->fuelAlgorithm == LM_REAL_MAF) { float maf = getRealMaf(PASS_ENGINE_PARAMETER_F) + engine->engineLoadAccelEnrichment.getEngineLoadEnrichment(PASS_ENGINE_PARAMETER_F); engine->engineState.baseFuel = getRealMafFuel(maf, rpm PASS_ENGINE_PARAMETER); diff --git a/firmware/controllers/math/speed_density.cpp b/firmware/controllers/math/speed_density.cpp index bcd1f8781d..8ff01856f3 100644 --- a/firmware/controllers/math/speed_density.cpp +++ b/firmware/controllers/math/speed_density.cpp @@ -75,9 +75,7 @@ EXTERN_ENGINE; /** * @return per cylinder injection time, in Milliseconds */ -floatms_t getSpeedDensityFuel(int rpm DECLARE_ENGINE_PARAMETER_S) { - //int rpm = engine->rpmCalculator->rpm(); - +floatms_t getSpeedDensityFuel(DECLARE_ENGINE_PARAMETER_F) { /** * most of the values are pre-calculated for performance reasons */ diff --git a/firmware/controllers/math/speed_density.h b/firmware/controllers/math/speed_density.h index 44b3fc2d0c..12f9407198 100644 --- a/firmware/controllers/math/speed_density.h +++ b/firmware/controllers/math/speed_density.h @@ -20,6 +20,6 @@ float sdMath(engine_configuration_s *engineConfiguration, float airMass, float A void setDefaultVETable(DECLARE_ENGINE_PARAMETER_F); void initSpeedDensity(DECLARE_ENGINE_PARAMETER_F); -floatms_t getSpeedDensityFuel(int rpm DECLARE_ENGINE_PARAMETER_S); +floatms_t getSpeedDensityFuel(DECLARE_ENGINE_PARAMETER_F); #endif /* SPEED_DENSITY_H_ */