making code testable
This commit is contained in:
parent
2cf5b266d0
commit
ea6c9dd332
|
@ -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;
|
||||
|
|
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in New Issue