HW CI CRITICAL error: Invalid airmass mode #1690

This commit is contained in:
rusefi 2020-08-13 12:49:48 -04:00
parent 3514f927ed
commit 2bd7d094be
1 changed files with 7 additions and 1 deletions

View File

@ -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;
*/
}
}