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

View File

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