From f341385138605e6c56933250ec7975590fcfa0d5 Mon Sep 17 00:00:00 2001 From: Andrey Gusakov Date: Sun, 6 Nov 2022 13:42:41 +0300 Subject: [PATCH] ETB: do not restart ETH thread on each doInitElectronicThrottle() --- firmware/controllers/actuators/electronic_throttle.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/firmware/controllers/actuators/electronic_throttle.cpp b/firmware/controllers/actuators/electronic_throttle.cpp index 3ccc5256a5..92a331609e 100644 --- a/firmware/controllers/actuators/electronic_throttle.cpp +++ b/firmware/controllers/actuators/electronic_throttle.cpp @@ -998,7 +998,11 @@ void doInitElectronicThrottle() { #endif /* EFI_UNIT_TEST */ #if !EFI_UNIT_TEST - etbThread.start(); + static bool started = false; + if (started == false) { + etbThread.start(); + started = true; + } #endif }