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