my take on useRunningMathForCranking

This commit is contained in:
rusefi 2020-02-18 10:47:39 -05:00
parent b84971cc6a
commit ec5ec558c2
1 changed files with 6 additions and 1 deletions

View File

@ -52,7 +52,12 @@ DISPLAY_TEXT(eol);
DISPLAY(DISPLAY_IF(isCrankingState)) floatms_t getCrankingFuel3(float coolantTemperature,
uint32_t revolutionCounterSinceStart DECLARE_ENGINE_PARAMETER_SUFFIX) {
// these magic constants are in Celsius
float baseCrankingFuel = engineConfiguration->cranking.baseFuel;
float baseCrankingFuel;
if (engineConfiguration->useRunningMathForCranking) {
baseCrankingFuel = engine->engineState.running.baseFuel;
} else {
baseCrankingFuel = engineConfiguration->cranking.baseFuel;
}
/**
* Cranking fuel changes over time
*/