diff --git a/firmware/controllers/engine_cycle/main_trigger_callback.cpp b/firmware/controllers/engine_cycle/main_trigger_callback.cpp index c0fbe3e13d..53f6d80f51 100644 --- a/firmware/controllers/engine_cycle/main_trigger_callback.cpp +++ b/firmware/controllers/engine_cycle/main_trigger_callback.cpp @@ -88,6 +88,7 @@ void InjectionEvent::onTriggerTooth(int rpm, efitick_t nowNt, float currentPhase } #endif /*EFI_PRINTF_FUEL_DETAILS */ +#if EFI_VEHICLE_SPEED bool isCranking = getEngineRotationState()->isCranking(); /** * todo: pre-calculate 'numberOfInjections' @@ -95,7 +96,6 @@ void InjectionEvent::onTriggerTooth(int rpm, efitick_t nowNt, float currentPhase */ int numberOfInjections = isCranking ? getNumberOfInjections(engineConfiguration->crankingInjectionMode) : getNumberOfInjections(engineConfiguration->injectionMode); -#if EFI_VEHICLE_SPEED engine->module()->consumeFuel(injectionMassGrams * numberOfInjections, nowNt); #endif // EFI_VEHICLE_SPEED