From 5e06db6b75300f939203e2d99dcf3ab5f548f0ee Mon Sep 17 00:00:00 2001 From: Matthew Kennedy Date: Mon, 26 Oct 2020 11:04:22 -0700 Subject: [PATCH] probably fix ci (#1912) --- firmware/controllers/algo/fuel_math.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/firmware/controllers/algo/fuel_math.cpp b/firmware/controllers/algo/fuel_math.cpp index 65f8af906b..a7f0e2c7dd 100644 --- a/firmware/controllers/algo/fuel_math.cpp +++ b/firmware/controllers/algo/fuel_math.cpp @@ -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; }