From 20a6cf130f9efa73a38d0f01d26ac3c3b603cbe9 Mon Sep 17 00:00:00 2001 From: rusefi Date: Fri, 10 Jan 2020 02:02:22 -0500 Subject: [PATCH] better method name --- firmware/controllers/actuators/electronic_throttle.cpp | 2 +- firmware/controllers/sensors/tps.cpp | 2 +- firmware/controllers/sensors/tps.h | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/firmware/controllers/actuators/electronic_throttle.cpp b/firmware/controllers/actuators/electronic_throttle.cpp index f14aac3268..4356587865 100644 --- a/firmware/controllers/actuators/electronic_throttle.cpp +++ b/firmware/controllers/actuators/electronic_throttle.cpp @@ -689,7 +689,7 @@ void doInitElectronicThrottle(DECLARE_ENGINE_PARAMETER_SIGNATURE) { if (!engine->engineState.hasEtbPedalPositionSensor) { return; } - engine->etbActualCount = hasTps2(PASS_ENGINE_PARAMETER_SIGNATURE) ? 2 : 1; + engine->etbActualCount = hasSecondThrottleBody(PASS_ENGINE_PARAMETER_SIGNATURE) ? 2 : 1; #if 0 // not alive code diff --git a/firmware/controllers/sensors/tps.cpp b/firmware/controllers/sensors/tps.cpp index 60981b02d9..56c770f170 100644 --- a/firmware/controllers/sensors/tps.cpp +++ b/firmware/controllers/sensors/tps.cpp @@ -217,7 +217,7 @@ bool hasPedalPositionSensor(DECLARE_ENGINE_PARAMETER_SIGNATURE) { return engineConfiguration->throttlePedalPositionAdcChannel != EFI_ADC_NONE; } -bool hasTps2(DECLARE_ENGINE_PARAMETER_SIGNATURE) { +bool hasSecondThrottleBody(DECLARE_ENGINE_PARAMETER_SIGNATURE) { return engineConfiguration->tps2_1AdcChannel != EFI_ADC_NONE; } diff --git a/firmware/controllers/sensors/tps.h b/firmware/controllers/sensors/tps.h index 556e3a2b85..61bea9860d 100644 --- a/firmware/controllers/sensors/tps.h +++ b/firmware/controllers/sensors/tps.h @@ -28,7 +28,7 @@ percent_t getTPSWithIndex(int index DECLARE_ENGINE_PARAMETER_SUFFIX); bool hasTpsSensor(DECLARE_ENGINE_PARAMETER_SIGNATURE); int convertVoltageTo10bitADC(float voltage); int getTPS12bitAdc(int index DECLARE_ENGINE_PARAMETER_SUFFIX); -bool hasTps2(DECLARE_ENGINE_PARAMETER_SIGNATURE); +bool hasSecondThrottleBody(DECLARE_ENGINE_PARAMETER_SIGNATURE); #define getTPS10bitAdc() (getTPS12bitAdc(0 PASS_ENGINE_PARAMETER_SUFFIX) / TPS_TS_CONVERSION) float getTPSVoltage(DECLARE_ENGINE_PARAMETER_SIGNATURE); percent_t getTpsValue(int index, int adc DECLARE_ENGINE_PARAMETER_SUFFIX);