probably fix ci (#1912)

This commit is contained in:
Matthew Kennedy 2020-10-26 11:04:22 -07:00 committed by GitHub
parent d5c929f5ba
commit 5e06db6b75
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 0 deletions

View File

@ -203,6 +203,11 @@ static float getBaseFuelMass(int rpm DECLARE_ENGINE_PARAMETER_SUFFIX) {
baseFuelMass *= CONFIG(globalFuelCorrection);
engine->engineState.baseFuel = baseFuelMass;
if (cisnan(baseFuelMass)) {
// todo: we should not have this here but https://github.com/rusefi/rusefi/issues/1690
return 0;
}
return baseFuelMass;
}