From 1bfc6adac31508e38ab9d5dcbb1a9cfb321258c7 Mon Sep 17 00:00:00 2001 From: rusefillc Date: Tue, 27 Sep 2022 22:21:18 -0400 Subject: [PATCH] refactoring: renaming method --- firmware/controllers/actuators/boost_control.cpp | 2 +- firmware/controllers/actuators/vvt.cpp | 2 +- firmware/controllers/actuators/vvt.h | 2 +- firmware/controllers/engine_controller.cpp | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/firmware/controllers/actuators/boost_control.cpp b/firmware/controllers/actuators/boost_control.cpp index b8f237c359..e30dcced3e 100644 --- a/firmware/controllers/actuators/boost_control.cpp +++ b/firmware/controllers/actuators/boost_control.cpp @@ -227,7 +227,7 @@ void onConfigurationChangeBoostCallback(engine_configuration_s *previousConfigur void initBoostCtrl() { // todo: why do we have 'isBoostControlEnabled' setting exactly? - // 'initAuxPid' is an example of a subsystem without explicit enable + // 'initVvtActuators' is an example of a subsystem without explicit enable if (!engineConfiguration->isBoostControlEnabled) { return; } diff --git a/firmware/controllers/actuators/vvt.cpp b/firmware/controllers/actuators/vvt.cpp index 47f4f655e5..de80e5668e 100644 --- a/firmware/controllers/actuators/vvt.cpp +++ b/firmware/controllers/actuators/vvt.cpp @@ -149,7 +149,7 @@ void stopVvtControlPins() { } } -void initAuxPid() { +void initVvtActuators() { vvtTable1.init(config->vvtTable1, config->vvtTable1LoadBins, config->vvtTable1RpmBins); diff --git a/firmware/controllers/actuators/vvt.h b/firmware/controllers/actuators/vvt.h index 1bc4cc9e4b..4ca5331f5b 100644 --- a/firmware/controllers/actuators/vvt.h +++ b/firmware/controllers/actuators/vvt.h @@ -14,7 +14,7 @@ class ValueProvider3D; -void initAuxPid(); +void initVvtActuators(); void startVvtControlPins(); void stopVvtControlPins(); diff --git a/firmware/controllers/engine_controller.cpp b/firmware/controllers/engine_controller.cpp index 0b15a97809..b92f49dee9 100644 --- a/firmware/controllers/engine_controller.cpp +++ b/firmware/controllers/engine_controller.cpp @@ -690,7 +690,7 @@ void initEngineContoller() { #endif /* EFI_ALTERNATOR_CONTROL */ #if EFI_AUX_PID - initAuxPid(); + initVvtActuators(); #endif /* EFI_AUX_PID */ #if EFI_MALFUNCTION_INDICATOR