mirror of https://github.com/rusefi/rusefi-1.git
undo 1946 (#1957)
This commit is contained in:
parent
3917324f21
commit
774de10f40
|
@ -59,7 +59,14 @@ public:
|
||||||
|
|
||||||
// no need to complicate event queue with ETB PWM in unit tests
|
// no need to complicate event queue with ETB PWM in unit tests
|
||||||
#if ! EFI_UNIT_TEST
|
#if ! EFI_UNIT_TEST
|
||||||
if (useTwoWires) {
|
startSimplePwmHard(&m_pwmEnable, "ETB Enable",
|
||||||
|
executor,
|
||||||
|
pinEnable,
|
||||||
|
&m_pinEnable,
|
||||||
|
clampedFrequency,
|
||||||
|
0
|
||||||
|
);
|
||||||
|
|
||||||
startSimplePwmHard(&m_pwmDir1, "ETB Dir 1",
|
startSimplePwmHard(&m_pwmDir1, "ETB Dir 1",
|
||||||
executor,
|
executor,
|
||||||
pinDir1,
|
pinDir1,
|
||||||
|
@ -75,21 +82,6 @@ public:
|
||||||
clampedFrequency,
|
clampedFrequency,
|
||||||
0
|
0
|
||||||
);
|
);
|
||||||
|
|
||||||
m_pinEnable.initPin("ETB Enable", pinEnable);
|
|
||||||
|
|
||||||
} else {
|
|
||||||
m_pinDir1.initPin("ETB Dir 1", pinDir1);
|
|
||||||
m_pinDir2.initPin("ETB Dir 2", pinDir2);
|
|
||||||
|
|
||||||
startSimplePwmHard(&m_pwmEnable, "ETB Enable",
|
|
||||||
executor,
|
|
||||||
pinEnable,
|
|
||||||
&m_pinEnable,
|
|
||||||
clampedFrequency,
|
|
||||||
0
|
|
||||||
);
|
|
||||||
}
|
|
||||||
#endif /* EFI_UNIT_TEST */
|
#endif /* EFI_UNIT_TEST */
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue