From 9a87b9e51befb75398b9808b3a7e5cd70929f79f Mon Sep 17 00:00:00 2001 From: rusEfi Date: Mon, 11 Mar 2019 00:31:06 -0400 Subject: [PATCH] better Electronic Throttle body control #493 --- firmware/config/engines/custom_engine.cpp | 3 +++ firmware/controllers/sensors/thermistors.h | 1 + 2 files changed, 4 insertions(+) diff --git a/firmware/config/engines/custom_engine.cpp b/firmware/config/engines/custom_engine.cpp index b21a4d8745..995fe22cbf 100644 --- a/firmware/config/engines/custom_engine.cpp +++ b/firmware/config/engines/custom_engine.cpp @@ -302,5 +302,8 @@ void setEtbTestConfiguration(DECLARE_ENGINE_PARAMETER_SIGNATURE) { CONFIGB(idle).stepperDirectionPin = GPIO_UNASSIGNED; boardConfiguration->useStepperIdle = true; + engineConfiguration->clt.adcChannel = EFI_ADC_15; + set10K_4050K(&engineConfiguration->clt); + } #endif /* CONFIG_ENGINES_CUSTOM_ENGINE_CPP_ */ diff --git a/firmware/controllers/sensors/thermistors.h b/firmware/controllers/sensors/thermistors.h index 405c56e595..1b44aa0103 100644 --- a/firmware/controllers/sensors/thermistors.h +++ b/firmware/controllers/sensors/thermistors.h @@ -47,5 +47,6 @@ void initThermistors(Logging *sharedLogger DECLARE_ENGINE_PARAMETER_SUFFIX); void setCommonNTCSensor(ThermistorConf *thermistorConf); void setDodgeSensor(ThermistorConf *thermistorConf); +void set10K_4050K(ThermistorConf *thermistorConf); #endif /* THERMISTORS_H_ */