This commit is contained in:
Matthew Kennedy 2020-11-17 14:07:56 -08:00 committed by GitHub
parent 3917324f21
commit 774de10f40
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 21 additions and 29 deletions

View File

@ -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 */
} }
}; };