mirror of https://github.com/FOME-Tech/fome-fw.git
better error handling
This commit is contained in:
parent
e600229626
commit
3df4f99a3e
|
@ -1051,10 +1051,11 @@ void resetConfigurationExt(Logging * logger, engine_type_e engineType DECLARE_EN
|
|||
}
|
||||
applyNonPersistentConfiguration(logger PASS_ENGINE_PARAMETER);
|
||||
// todo: eliminate triggerShape.operationMode?
|
||||
if (engineConfiguration->operationMode != TRIGGER_SHAPE(getOperationMode()))
|
||||
firmwareError(CUSTOM_ERR_OP_MODE, "operationMode %d/trigger mismatch %d",
|
||||
if (engineConfiguration->operationMode != TRIGGER_SHAPE(getOperationMode())) {
|
||||
warning(CUSTOM_ERR_OP_MODE, "operationMode %d/trigger mismatch %d",
|
||||
engineConfiguration->operationMode,
|
||||
TRIGGER_SHAPE(getOperationMode()));
|
||||
}
|
||||
|
||||
#if EFI_TUNER_STUDIO
|
||||
syncTunerStudioCopy();
|
||||
|
|
Loading…
Reference in New Issue