From effaa33c81cf72355756da81c562242c8f28be44 Mon Sep 17 00:00:00 2001 From: rusEfi Date: Wed, 2 Sep 2015 22:01:17 -0400 Subject: [PATCH] auto-sync --- firmware/controllers/algo/fuel_math.cpp | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/firmware/controllers/algo/fuel_math.cpp b/firmware/controllers/algo/fuel_math.cpp index ee7c9a4ac0..0fd4658db8 100644 --- a/firmware/controllers/algo/fuel_math.cpp +++ b/firmware/controllers/algo/fuel_math.cpp @@ -37,7 +37,7 @@ #include "engine_math.h" #include "rpm_calculator.h" #include "speed_density.h" -#if EFI_ACCEL_ENRICHMENT +#if EFI_ACCEL_ENRICHMENT || defined(__DOXYGEN__) #include "accel_enrichment.h" #endif /* EFI_ACCEL_ENRICHMENT */ @@ -134,12 +134,14 @@ floatms_t getRunningFuel(floatms_t baseFuel, int rpm DECLARE_ENGINE_PARAMETER_S) float iatCorrection = ENGINE(engineState.iatFuelCorrection); float cltCorrection = ENGINE(engineState.cltFuelCorrection); -#if EFI_ACCEL_ENRICHMENT +#if EFI_ACCEL_ENRICHMENT || defined(__DOXYGEN__) float accelEnrichment = getAccelEnrichment(); // todo: accelEnrichment #endif /* EFI_ACCEL_ENRICHMENT */ - return baseFuel * cltCorrection * iatCorrection; + engine->totalFuelCorrection = cltCorrection * iatCorrection; + + return baseFuel * engine->totalFuelCorrection; } /** @@ -201,7 +203,7 @@ float getBaroCorrection(DECLARE_ENGINE_PARAMETER_F) { } } -#if EFI_ENGINE_CONTROL +#if EFI_ENGINE_CONTROL || defined(__DOXYGEN__) /** * @return Duration of fuel injection while craning */