From 021dc9d18583b695de6e03093ea1ae2d85bd3886 Mon Sep 17 00:00:00 2001 From: Matthew Kennedy Date: Sat, 9 Jan 2021 13:51:24 -0800 Subject: [PATCH] fix (#2209) --- firmware/controllers/engine_controller.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/firmware/controllers/engine_controller.cpp b/firmware/controllers/engine_controller.cpp index e3f5895444..5c3c33ebe6 100644 --- a/firmware/controllers/engine_controller.cpp +++ b/firmware/controllers/engine_controller.cpp @@ -253,11 +253,11 @@ static void doPeriodicSlowCallback(DECLARE_ENGINE_PARAMETER_SIGNATURE) { #if EFI_INTERNAL_FLASH writeToFlashIfPending(); #endif /* EFI_INTERNAL_FLASH */ - resetAccel(); } - - if (!engine->rpmCalculator.isStopped()) { + if (engine->rpmCalculator.isStopped()) { + resetAccel(); + } else { updatePrimeInjectionPulseState(PASS_ENGINE_PARAMETER_SIGNATURE); }