mirror of https://github.com/rusefi/rusefi.git
We really should decouple DC from ETB
This commit is contained in:
parent
d649a8100f
commit
f0b6dfa745
|
@ -778,8 +778,8 @@ static EtbController* etbControllers[] = { &etb1, &etb2 };
|
||||||
|
|
||||||
#if !EFI_UNIT_TEST
|
#if !EFI_UNIT_TEST
|
||||||
|
|
||||||
struct EtbThread final : public PeriodicController<512> {
|
struct DcThread final : public PeriodicController<512> {
|
||||||
EtbThread() : PeriodicController("ETB", PRIO_ETB, ETB_LOOP_FREQUENCY) {}
|
DcThread() : PeriodicController("DC", PRIO_ETB, ETB_LOOP_FREQUENCY) {}
|
||||||
|
|
||||||
void PeriodicTask(efitick_t) override {
|
void PeriodicTask(efitick_t) override {
|
||||||
// Simply update all controllers
|
// Simply update all controllers
|
||||||
|
@ -789,7 +789,7 @@ struct EtbThread final : public PeriodicController<512> {
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
static EtbThread etbThread CCM_OPTIONAL;
|
static DcThread dcThread CCM_OPTIONAL;
|
||||||
|
|
||||||
#endif // EFI_UNIT_TEST
|
#endif // EFI_UNIT_TEST
|
||||||
|
|
||||||
|
@ -1085,7 +1085,7 @@ void doInitElectronicThrottle() {
|
||||||
#if !EFI_UNIT_TEST
|
#if !EFI_UNIT_TEST
|
||||||
static bool started = false;
|
static bool started = false;
|
||||||
if (started == false) {
|
if (started == false) {
|
||||||
etbThread.start();
|
dcThread.start();
|
||||||
started = true;
|
started = true;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in New Issue