diff --git a/firmware/controllers/trigger/decoders/trigger_structure.cpp b/firmware/controllers/trigger/decoders/trigger_structure.cpp index e3f57ab625..4a58158572 100644 --- a/firmware/controllers/trigger/decoders/trigger_structure.cpp +++ b/firmware/controllers/trigger/decoders/trigger_structure.cpp @@ -443,7 +443,7 @@ void TriggerWaveform::setThirdTriggerSynchronizationGap(float syncRatio) { /** * External logger is needed because at this point our logger is not yet initialized */ -void TriggerWaveform::initializeTriggerWaveform(operation_mode_e ambiguousOperationMode, bool useOnlyRisingEdgeForTrigger, const trigger_config_s *triggerConfig) { +void TriggerWaveform::initializeTriggerWaveform(operation_mode_e triggerOperationMode, bool useOnlyRisingEdgeForTrigger, const trigger_config_s *triggerConfig) { #if EFI_PROD_CODE efiAssertVoid(CUSTOM_ERR_6641, getCurrentRemainingStack() > EXPECTED_REMAINING_STACK, "init t"); @@ -462,7 +462,7 @@ void TriggerWaveform::initializeTriggerWaveform(operation_mode_e ambiguousOperat * which touches 'useRiseEdge' flag while here we do not touch it?! */ initializeSkippedToothTriggerWaveformExt(this, triggerConfig->customTotalToothCount, - triggerConfig->customSkippedToothCount, ambiguousOperationMode); + triggerConfig->customSkippedToothCount, triggerOperationMode); break; case TT_MAZDA_MIATA_NA: @@ -599,7 +599,7 @@ void TriggerWaveform::initializeTriggerWaveform(operation_mode_e ambiguousOperat break; case TT_ONE: - setToothedWheelConfiguration(this, 1, 0, ambiguousOperationMode); + setToothedWheelConfiguration(this, 1, 0, triggerOperationMode); break; case TT_MAZDA_SOHC_4: @@ -611,7 +611,7 @@ void TriggerWaveform::initializeTriggerWaveform(operation_mode_e ambiguousOperat break; case TT_VVT_JZ: - setToothedWheelConfiguration(this, 3, 0, ambiguousOperationMode); + setToothedWheelConfiguration(this, 3, 0, triggerOperationMode); break; case TT_36_2_1_1: @@ -623,19 +623,19 @@ void TriggerWaveform::initializeTriggerWaveform(operation_mode_e ambiguousOperat break; case TT_TOOTHED_WHEEL_32_2: - setToothedWheelConfiguration(this, 32, 2, ambiguousOperationMode); + setToothedWheelConfiguration(this, 32, 2, triggerOperationMode); // todo: add this second/third into 'setToothedWheelConfiguration' as long as we have enough tooth? setSecondTriggerSynchronizationGap(1); // this gap is not required to synch on perfect signal but is needed to handle to reject cranking transition noise setThirdTriggerSynchronizationGap(1); break; case TT_TOOTHED_WHEEL_60_2: - setToothedWheelConfiguration(this, 60, 2, ambiguousOperationMode); + setToothedWheelConfiguration(this, 60, 2, triggerOperationMode); setSecondTriggerSynchronizationGap(1); // this gap is not required to synch on perfect signal but is needed to handle to reject cranking transition noise break; case TT_TOOTHED_WHEEL_36_2: - setToothedWheelConfiguration(this, 36, 2, ambiguousOperationMode); + setToothedWheelConfiguration(this, 36, 2, triggerOperationMode); setSecondTriggerSynchronizationGap(1); // this gap is not required to synch on perfect signal but is needed to handle to reject cranking transition noise break; @@ -644,7 +644,7 @@ void TriggerWaveform::initializeTriggerWaveform(operation_mode_e ambiguousOperat break; case TT_TOOTHED_WHEEL_36_1: - setToothedWheelConfiguration(this, 36, 1, ambiguousOperationMode); + setToothedWheelConfiguration(this, 36, 1, triggerOperationMode); setSecondTriggerSynchronizationGap(1); // this gap is not required to synch on perfect signal but is needed to handle to reject cranking transition noise break; diff --git a/firmware/controllers/trigger/trigger_central.cpp b/firmware/controllers/trigger/trigger_central.cpp index 0bea7eac48..581a10ec47 100644 --- a/firmware/controllers/trigger/trigger_central.cpp +++ b/firmware/controllers/trigger/trigger_central.cpp @@ -873,6 +873,8 @@ void onConfigurationChangeTriggerCallback() { changed |= isConfigurationChanged(trigger.type); changed |= isConfigurationChanged(ambiguousOperationMode); + changed |= isConfigurationChanged(skippedWheelOnCam); + changed |= isConfigurationChanged(twoStroke); changed |= isConfigurationChanged(useOnlyRisingEdgeForTrigger); changed |= isConfigurationChanged(globalTriggerAngleOffset); changed |= isConfigurationChanged(trigger.customTotalToothCount);