moving acceleration around
This commit is contained in:
parent
f919845c9c
commit
d423c077a0
|
@ -225,10 +225,6 @@ static void handleFuel(uint32_t trgEventIndex, int rpm, efitick_t nowNt, float c
|
|||
efiAssertVoid(CUSTOM_STACK_6627, getCurrentRemainingStack() > 128, "lowstck#3");
|
||||
efiAssertVoid(CUSTOM_ERR_6628, trgEventIndex < getTriggerCentral()->engineCycleEventCount, "handleFuel/event index");
|
||||
|
||||
if (trgEventIndex == 0) {
|
||||
engine->tpsAccelEnrichment.onEngineCycleTps();
|
||||
}
|
||||
|
||||
LimpState limitedFuelState = getLimpManager()->allowInjection();
|
||||
engine->outputChannels.fuelCutReason = (int8_t)limitedFuelState.reason;
|
||||
bool limitedFuel = !limitedFuelState.value;
|
||||
|
|
|
@ -751,6 +751,10 @@ void TriggerCentral::handleShaftSignal(trigger_event_e signal, efitick_t timesta
|
|||
}
|
||||
#endif /* EFI_CDM_INTEGRATION */
|
||||
|
||||
if (engine->rpmCalculator.getCachedRpm() > 0 && triggerIndexForListeners == 0) {
|
||||
engine->tpsAccelEnrichment.onEngineCycleTps();
|
||||
}
|
||||
|
||||
// Handle ignition and injection
|
||||
mainTriggerCallback(triggerIndexForListeners, timestamp, currentPhase, nextPhase);
|
||||
|
||||
|
|
Loading…
Reference in New Issue