micro refactoring

This commit is contained in:
rusefi 2020-01-30 01:20:41 -05:00
parent d004efa844
commit cf087218c9
1 changed files with 2 additions and 3 deletions

View File

@ -344,7 +344,7 @@ void TriggerCentral::handleShaftSignal(trigger_event_e signal, efitick_t timesta
/**
* This invocation changes the state of triggerState
*/
triggerState.decodeTriggerEvent(&ENGINE(triggerCentral.triggerShape),
triggerState.decodeTriggerEvent(&triggerShape,
nullptr, engine, signal, timestamp PASS_CONFIG_PARAMETER_SUFFIX);
/**
@ -353,8 +353,7 @@ void TriggerCentral::handleShaftSignal(trigger_event_e signal, efitick_t timesta
*/
int triggerIndexForListeners;
operation_mode_e operationMode = engine->getOperationMode(PASS_ENGINE_PARAMETER_SIGNATURE);
if (operationMode == FOUR_STROKE_CAM_SENSOR ||
operationMode == TWO_STROKE) {
if (operationMode == FOUR_STROKE_CAM_SENSOR || operationMode == TWO_STROKE) {
// That's easy - trigger cycle matches engine cycle
triggerIndexForListeners = triggerState.getCurrentIndex();
} else {