From a7c355e9824e271d25b97c34cc71336a671478ce Mon Sep 17 00:00:00 2001 From: Matthew Kennedy Date: Thu, 8 Jul 2021 16:33:42 -0700 Subject: [PATCH] init loops after sensors (#2927) --- firmware/rusefi.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/firmware/rusefi.cpp b/firmware/rusefi.cpp index 0bc426875b..fe92448b7f 100644 --- a/firmware/rusefi.cpp +++ b/firmware/rusefi.cpp @@ -285,6 +285,9 @@ void runRusEfi(void) { runRusEfiWithConfig(); + // periodic events need to be initialized after fuel&spark pins to avoid a warning + initPeriodicEvents(PASS_ENGINE_PARAMETER_SIGNATURE); + runMainLoop(); } @@ -302,9 +305,6 @@ void runRusEfiWithConfig() { */ initHardware(); - // periodic events need to be initialized after fuel&spark pins to avoid a warning - initPeriodicEvents(PASS_ENGINE_PARAMETER_SIGNATURE); - #if EFI_FILE_LOGGING initMmcCard(); #endif /* EFI_FILE_LOGGING */