From cf087218c92c7186eaa6cd883a1eb596b589cbf5 Mon Sep 17 00:00:00 2001 From: rusefi Date: Thu, 30 Jan 2020 01:20:41 -0500 Subject: [PATCH] micro refactoring --- firmware/controllers/trigger/trigger_central.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/firmware/controllers/trigger/trigger_central.cpp b/firmware/controllers/trigger/trigger_central.cpp index d3b9677bc0..092ab6e9e3 100644 --- a/firmware/controllers/trigger/trigger_central.cpp +++ b/firmware/controllers/trigger/trigger_central.cpp @@ -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 {