making code testable

This commit is contained in:
rusefi 2018-03-04 22:45:20 -05:00
parent 2cf5b266d0
commit ea6c9dd332
2 changed files with 3 additions and 3 deletions

View File

@ -90,13 +90,13 @@ void startSimultaniousInjection(Engine *engine) {
}
}
void endSimultaniousInjectionOnlyTogglePins(Engine *engine) {
static void endSimultaniousInjectionOnlyTogglePins(Engine *engine) {
for (int i = 0; i < engine->engineConfiguration->specs.cylindersCount; i++) {
enginePins.injectors[i].setLow();
}
}
static void endSimultaniousInjection(InjectionEvent *event) {
void endSimultaniousInjection(InjectionEvent *event) {
#if EFI_UNIT_TEST || defined(__DOXYGEN__)
Engine *engine = event->engine;
EXPAND_Engine;

View File

@ -23,7 +23,7 @@ int isIgnitionTimingError(void);
void showMainHistogram(void);
void startSimultaniousInjection(Engine *engine);
void endSimultaniousInjectionOnlyTogglePins(Engine *engine);
void endSimultaniousInjection(InjectionEvent *event);
void seTurnPinHigh(InjectionSignalPair *pair);
void seTurnPinLow(InjectionSignalPair *pair);