We really should decouple DC from ETB

This commit is contained in:
rusefillc 2023-01-16 16:02:29 -05:00
parent d649a8100f
commit f0b6dfa745
1 changed files with 4 additions and 4 deletions

View File

@ -778,8 +778,8 @@ static EtbController* etbControllers[] = { &etb1, &etb2 };
#if !EFI_UNIT_TEST
struct EtbThread final : public PeriodicController<512> {
EtbThread() : PeriodicController("ETB", PRIO_ETB, ETB_LOOP_FREQUENCY) {}
struct DcThread final : public PeriodicController<512> {
DcThread() : PeriodicController("DC", PRIO_ETB, ETB_LOOP_FREQUENCY) {}
void PeriodicTask(efitick_t) override {
// 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
@ -1085,7 +1085,7 @@ void doInitElectronicThrottle() {
#if !EFI_UNIT_TEST
static bool started = false;
if (started == false) {
etbThread.start();
dcThread.start();
started = true;
}
#endif