ETB: do not restart ETH thread on each doInitElectronicThrottle()

This commit is contained in:
Andrey Gusakov 2022-11-06 13:42:41 +03:00 committed by rusefillc
parent 53d3c4a529
commit f341385138
1 changed files with 5 additions and 1 deletions

View File

@ -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
}