setSparkSkipRatio limitation #5231

This commit is contained in:
Andrey 2023-05-25 18:52:19 -04:00
parent ff87fb5f51
commit 0265582f28
2 changed files with 3 additions and 2 deletions

View File

@ -139,6 +139,9 @@ bool LaunchControlBase::isLaunchFuelRpmRetardCondition() const {
SoftSparkLimiter::SoftSparkLimiter(bool allowHardCut) {
this->allowHardCut = allowHardCut;
#if EFI_UNIT_TEST
initLaunchControl();
#endif // EFI_UNIT_TEST
}
void SoftSparkLimiter::setTargetSkipRatio(float targetSkipRatio) {

View File

@ -140,8 +140,6 @@ static void setDefaultLaunchParameters() {
TEST(LaunchControl, CompleteRun) {
EngineTestHelper eth(TEST_ENGINE);
initLaunchControl();
//load default config
setDefaultLaunchParameters();