better error handling

This commit is contained in:
rusefi 2017-03-12 22:48:15 -04:00
parent e600229626
commit 3df4f99a3e
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); applyNonPersistentConfiguration(logger PASS_ENGINE_PARAMETER);
// todo: eliminate triggerShape.operationMode? // todo: eliminate triggerShape.operationMode?
if (engineConfiguration->operationMode != TRIGGER_SHAPE(getOperationMode())) if (engineConfiguration->operationMode != TRIGGER_SHAPE(getOperationMode())) {
firmwareError(CUSTOM_ERR_OP_MODE, "operationMode %d/trigger mismatch %d", warning(CUSTOM_ERR_OP_MODE, "operationMode %d/trigger mismatch %d",
engineConfiguration->operationMode, engineConfiguration->operationMode,
TRIGGER_SHAPE(getOperationMode())); TRIGGER_SHAPE(getOperationMode()));
}
#if EFI_TUNER_STUDIO #if EFI_TUNER_STUDIO
syncTunerStudioCopy(); syncTunerStudioCopy();