better error handling

This commit is contained in:
rusefi 2017-03-12 22:48:15 -04:00
parent a0d9617570
commit f3c444f2a2
1 changed files with 3 additions and 2 deletions

View File

@ -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();