Remove legacy check fix #3808
This commit is contained in:
parent
c29a0b54a7
commit
08c1c5d969
|
@ -77,9 +77,7 @@ void TriggerScheduler::scheduleEventsUntilNextTriggerTooth(int rpm,
|
|||
uint32_t trgEventIndex,
|
||||
efitick_t edgeTimestamp) {
|
||||
|
||||
// Not sure why we check ignitionEnabled; it's left over from when this code lived in
|
||||
// spark_logic.cpp, but I think it should be removed.
|
||||
if (!isValidRpm(rpm) || !engineConfiguration->isIgnitionEnabled) {
|
||||
if (!isValidRpm(rpm)) {
|
||||
// this might happen for instance in case of a single trigger event after a pause
|
||||
return;
|
||||
}
|
||||
|
|
|
@ -24,6 +24,6 @@ TEST(misc, testAuxValves) {
|
|||
|
||||
eth.assertTriggerEvent("a0", 0, &engine->auxValves[0][0].open, (void*)&auxPlainPinTurnOn, 7, 86);
|
||||
eth.assertTriggerEvent("a1", 1, &engine->auxValves[0][1].open, (void*)&auxPlainPinTurnOn, 3, 86);
|
||||
eth.assertTriggerEvent("a2", 2, &engine->auxValves[1][0].open, (void*)&auxPlainPinTurnOn, 1, 86);
|
||||
eth.assertTriggerEvent("a2", 2, &engine->auxValves[1][0].open, (void*)&auxPlainPinTurnOn, 5, 86);
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue