From 2bd7d094be630dbc7cccc64a0b257858bd08a1c6 Mon Sep 17 00:00:00 2001 From: rusefi Date: Thu, 13 Aug 2020 12:49:48 -0400 Subject: [PATCH] HW CI CRITICAL error: Invalid airmass mode #1690 --- firmware/controllers/algo/fuel_math.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/firmware/controllers/algo/fuel_math.cpp b/firmware/controllers/algo/fuel_math.cpp index 5f19441c5e..99f333669b 100644 --- a/firmware/controllers/algo/fuel_math.cpp +++ b/firmware/controllers/algo/fuel_math.cpp @@ -182,7 +182,13 @@ AirmassModelBase* getAirmassModel(DECLARE_ENGINE_PARAMETER_SIGNATURE) { #if EFI_UNIT_TEST case LM_MOCK: return engine->mockAirmassModel; #endif - default: return nullptr; + default: + // this is a bad work-around for https://github.com/rusefi/rusefi/issues/1690 issue + warning(CUSTOM_ERR_ASSERT, "Invalid airmass mode %d", CONFIG(fuelAlgorithm)); + return &sdAirmass; +/* todo: this should be the implementation + return nullptr; +*/ } }