auto-sync

This commit is contained in:
rusEfi 2015-09-02 22:01:17 -04:00
parent 00feed272d
commit effaa33c81
1 changed files with 6 additions and 4 deletions

View File

@ -37,7 +37,7 @@
#include "engine_math.h" #include "engine_math.h"
#include "rpm_calculator.h" #include "rpm_calculator.h"
#include "speed_density.h" #include "speed_density.h"
#if EFI_ACCEL_ENRICHMENT #if EFI_ACCEL_ENRICHMENT || defined(__DOXYGEN__)
#include "accel_enrichment.h" #include "accel_enrichment.h"
#endif /* EFI_ACCEL_ENRICHMENT */ #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 iatCorrection = ENGINE(engineState.iatFuelCorrection);
float cltCorrection = ENGINE(engineState.cltFuelCorrection); float cltCorrection = ENGINE(engineState.cltFuelCorrection);
#if EFI_ACCEL_ENRICHMENT #if EFI_ACCEL_ENRICHMENT || defined(__DOXYGEN__)
float accelEnrichment = getAccelEnrichment(); float accelEnrichment = getAccelEnrichment();
// todo: accelEnrichment // todo: accelEnrichment
#endif /* EFI_ACCEL_ENRICHMENT */ #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 * @return Duration of fuel injection while craning
*/ */