From aba749eae5bd53bfbed8d3511b2e98a8b11497d3 Mon Sep 17 00:00:00 2001 From: rusefi Date: Sun, 4 Mar 2018 22:45:20 -0500 Subject: [PATCH] making code testable --- firmware/controllers/trigger/main_trigger_callback.cpp | 4 ++-- firmware/controllers/trigger/main_trigger_callback.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/firmware/controllers/trigger/main_trigger_callback.cpp b/firmware/controllers/trigger/main_trigger_callback.cpp index 452c03776b..19d70a5441 100644 --- a/firmware/controllers/trigger/main_trigger_callback.cpp +++ b/firmware/controllers/trigger/main_trigger_callback.cpp @@ -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; diff --git a/firmware/controllers/trigger/main_trigger_callback.h b/firmware/controllers/trigger/main_trigger_callback.h index 179e5c96fb..d4173466b7 100644 --- a/firmware/controllers/trigger/main_trigger_callback.h +++ b/firmware/controllers/trigger/main_trigger_callback.h @@ -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);