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
|
||||
#if ! EFI_UNIT_TEST
|
||||
if (useTwoWires) {
|
||||
startSimplePwmHard(&m_pwmEnable, "ETB Enable",
|
||||
executor,
|
||||
pinEnable,
|
||||
&m_pinEnable,
|
||||
clampedFrequency,
|
||||
0
|
||||
);
|
||||
|
||||
startSimplePwmHard(&m_pwmDir1, "ETB Dir 1",
|
||||
executor,
|
||||
pinDir1,
|
||||
|
@ -75,21 +82,6 @@ public:
|
|||
clampedFrequency,
|
||||
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 */
|
||||
}
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue