diff --git a/firmware/controllers/engine_cycle/fuel_schedule.cpp b/firmware/controllers/engine_cycle/fuel_schedule.cpp index 15fcb4a9dc..b07166ea1c 100644 --- a/firmware/controllers/engine_cycle/fuel_schedule.cpp +++ b/firmware/controllers/engine_cycle/fuel_schedule.cpp @@ -20,6 +20,17 @@ #if EFI_ENGINE_CONTROL +void turnInjectionPinHigh(InjectionEvent *event) { + efitick_t nowNt = getTimeNowNt(); + for (int i = 0;i < MAX_WIRES_COUNT;i++) { + InjectorOutputPin *output = event->outputs[i]; + + if (output) { + output->open(nowNt); + } + } +} + FuelSchedule::FuelSchedule() { for (int cylinderIndex = 0; cylinderIndex < MAX_CYLINDER_COUNT; cylinderIndex++) { elements[cylinderIndex].ownIndex = cylinderIndex; diff --git a/firmware/controllers/engine_cycle/main_trigger_callback.cpp b/firmware/controllers/engine_cycle/main_trigger_callback.cpp index 07db0bf144..f9e96027f1 100644 --- a/firmware/controllers/engine_cycle/main_trigger_callback.cpp +++ b/firmware/controllers/engine_cycle/main_trigger_callback.cpp @@ -59,18 +59,6 @@ void endSimultaneousInjection(InjectionEvent *event) { engine->injectionEvents.addFuelEventsForCylinder(event->ownIndex); } -void turnInjectionPinHigh(InjectionEvent *event) { - efitick_t nowNt = getTimeNowNt(); - for (int i = 0;i < MAX_WIRES_COUNT;i++) { - InjectorOutputPin *output = event->outputs[i]; - - if (output) { - output->open(nowNt); - } - } -} - - void turnInjectionPinLow(InjectionEvent *event) { efitick_t nowNt = getTimeNowNt();