WTF is wrong with MRE_miata_na6 config? operationMode complexity #898

actually ignoring setting for well known triggers
This commit is contained in:
rusefi 2019-08-17 22:00:01 -04:00
parent 6c9d684dfd
commit 70c74bec0d
1 changed files with 5 additions and 2 deletions

View File

@ -337,8 +337,11 @@ static bool doesTriggerImplyOperationMode(trigger_type_e type) {
}
operation_mode_e Engine::getOperationMode(DECLARE_ENGINE_PARAMETER_SIGNATURE) {
//return doesTriggerImplyOperationMode(engineConfiguration->trigger.type) ? triggerCentral.triggerShape.getOperationMode() : engineConfiguration->ambiguousOperationMode;
return engineConfiguration->ambiguousOperationMode;
/**
* here we ignore user-provided setting for well known triggers.
* For instance for Miata NA, there is no reason to allow user to set FOUR_STROKE_CRANK_SENSOR
*/
return doesTriggerImplyOperationMode(engineConfiguration->trigger.type) ? triggerCentral.triggerShape.getOperationMode() : engineConfiguration->ambiguousOperationMode;
}
/**