micro refactoring
This commit is contained in:
parent
4a1e17e535
commit
1b40819516
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue