From 17792f762cfb4170eabe8b6207d9b40f0ed12e98 Mon Sep 17 00:00:00 2001 From: rusefi Date: Mon, 4 Nov 2019 22:29:22 -0500 Subject: [PATCH] kind of todo --- firmware/controllers/sensors/thermistors.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/firmware/controllers/sensors/thermistors.cpp b/firmware/controllers/sensors/thermistors.cpp index 23478f67c4..29377f60b0 100644 --- a/firmware/controllers/sensors/thermistors.cpp +++ b/firmware/controllers/sensors/thermistors.cpp @@ -125,7 +125,12 @@ bool isValidIntakeAirTemperature(temperature_t temperature) { } bool hasCltSensorM(DECLARE_ENGINE_PARAMETER_SIGNATURE) { - return engineConfiguration->clt.adcChannel != EFI_ADC_NONE; + bool haveSensorChannel = engineConfiguration->clt.adcChannel != EFI_ADC_NONE; + if (!haveSensorChannel) { + return false; + } +// return !cisnan(engine->sensors.clt); todo why would unit tests fail?! + return true; } /**