moving confusion further away from fuel control
This commit is contained in:
parent
a20d19856b
commit
9d497846d3
|
@ -383,13 +383,6 @@ void mainTriggerCallback(uint32_t trgEventIndex, efitick_t edgeTimestamp, angle_
|
||||||
}
|
}
|
||||||
#endif // HW_CHECK_MODE
|
#endif // HW_CHECK_MODE
|
||||||
|
|
||||||
#if EFI_CDM_INTEGRATION
|
|
||||||
if (trgEventIndex == 0 && isBrainPinValid(engineConfiguration->cdmInputPin)) {
|
|
||||||
int cdmKnockValue = getCurrentCdmValue(engine->triggerCentral.triggerState.getTotalRevolutionCounter());
|
|
||||||
engine->knockLogic(cdmKnockValue);
|
|
||||||
}
|
|
||||||
#endif /* EFI_CDM_INTEGRATION */
|
|
||||||
|
|
||||||
int rpm = engine->rpmCalculator.getCachedRpm();
|
int rpm = engine->rpmCalculator.getCachedRpm();
|
||||||
if (rpm == 0) {
|
if (rpm == 0) {
|
||||||
// this happens while we just start cranking
|
// this happens while we just start cranking
|
||||||
|
|
|
@ -750,6 +750,14 @@ void TriggerCentral::handleShaftSignal(trigger_event_e signal, efitick_t timesta
|
||||||
wrapAngle(nextPhase, "nextEnginePhase", CUSTOM_ERR_6555);
|
wrapAngle(nextPhase, "nextEnginePhase", CUSTOM_ERR_6555);
|
||||||
} while (nextPhase == currentPhase);
|
} while (nextPhase == currentPhase);
|
||||||
|
|
||||||
|
|
||||||
|
#if EFI_CDM_INTEGRATION
|
||||||
|
if (trgEventIndex == 0 && isBrainPinValid(engineConfiguration->cdmInputPin)) {
|
||||||
|
int cdmKnockValue = getCurrentCdmValue(engine->triggerCentral.triggerState.getTotalRevolutionCounter());
|
||||||
|
engine->knockLogic(cdmKnockValue);
|
||||||
|
}
|
||||||
|
#endif /* EFI_CDM_INTEGRATION */
|
||||||
|
|
||||||
// Handle ignition and injection
|
// Handle ignition and injection
|
||||||
mainTriggerCallback(triggerIndexForListeners, timestamp, currentPhase, nextPhase);
|
mainTriggerCallback(triggerIndexForListeners, timestamp, currentPhase, nextPhase);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue