moving acceleration around

This commit is contained in:
rusefillc 2022-09-16 00:06:57 -04:00
parent 61134b452a
commit efb232223f
2 changed files with 4 additions and 4 deletions

View File

@ -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;

View File

@ -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);