tear down Engine god object #4511

This commit is contained in:
rusefillc 2022-09-15 22:12:49 -04:00
parent fc9fb5724c
commit 50cef9a201
2 changed files with 4 additions and 2 deletions

View File

@ -925,7 +925,7 @@ void onConfigurationChangeTriggerCallback() {
if (changed) {
#if EFI_ENGINE_CONTROL
engine->updateTriggerWaveform();
engine->triggerCentral.noiseFilter.resetAccumSignalData();
getTriggerCentral()->noiseFilter.resetAccumSignalData();
#endif
}
#if EFI_DEFAILED_LOGGING
@ -933,7 +933,7 @@ void onConfigurationChangeTriggerCallback() {
#endif /* EFI_DEFAILED_LOGGING */
// we do not want to miss two updates in a row
engine->triggerCentral.triggerConfigChanged = engine->triggerCentral.triggerConfigChanged || changed;
getTriggerCentral()->triggerConfigChanged = getTriggerCentral()->triggerConfigChanged || changed;
}
static void initVvtShape(TriggerWaveform& shape, const TriggerConfiguration& config, TriggerDecoderBase &initState) {

View File

@ -8,7 +8,9 @@
#pragma once
#include <stdint.h>
#ifdef __cplusplus
#include <rusefi/arrays.h>
#endif
#define _MAX_FILLER 11