From 6457c05da55876133a7b8a2002fc52cc5fc480c3 Mon Sep 17 00:00:00 2001 From: rusefi Date: Fri, 20 Sep 2019 08:44:20 -0400 Subject: [PATCH] thank you @andreika! --- firmware/controllers/engine_controller.cpp | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/firmware/controllers/engine_controller.cpp b/firmware/controllers/engine_controller.cpp index 253cc60b25..e238908bd5 100644 --- a/firmware/controllers/engine_controller.cpp +++ b/firmware/controllers/engine_controller.cpp @@ -90,15 +90,17 @@ // this method is used by real firmware and simulator and unit test void mostCommonInitEngineController(Logging *sharedLogger DECLARE_ENGINE_PARAMETER_SUFFIX) { -#if EFI_IDLE_CONTROL - startIdleThread(sharedLogger PASS_ENGINE_PARAMETER_SUFFIX); -#endif /* EFI_IDLE_CONTROL */ - initSensors(sharedLogger PASS_ENGINE_PARAMETER_SUFFIX); + initAccelEnrichment(sharedLogger PASS_ENGINE_PARAMETER_SUFFIX); + #if EFI_FSIO initFsioImpl(sharedLogger PASS_ENGINE_PARAMETER_SUFFIX); #endif /* EFI_FSIO */ + +#if EFI_IDLE_CONTROL + startIdleThread(sharedLogger PASS_ENGINE_PARAMETER_SUFFIX); +#endif /* EFI_IDLE_CONTROL */ } EXTERN_ENGINE;