moving IO-only away from scheduling logic

This commit is contained in:
Andrey 2022-09-14 00:55:55 -04:00
parent b69d613192
commit 28704a9970
2 changed files with 11 additions and 12 deletions

View File

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

View File

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