From e2c5a13dbcfa689ac17758c1de8b0a7022df2aa7 Mon Sep 17 00:00:00 2001 From: rusefillc Date: Thu, 6 May 2021 13:58:01 -0400 Subject: [PATCH] Temperature sensors issue fix #2629 --- firmware/init/sensor/init_thermistors.cpp | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/firmware/init/sensor/init_thermistors.cpp b/firmware/init/sensor/init_thermistors.cpp index 8032f4494c..771a377f75 100644 --- a/firmware/init/sensor/init_thermistors.cpp +++ b/firmware/init/sensor/init_thermistors.cpp @@ -28,13 +28,12 @@ static CCM_OPTIONAL FunctionalSensor aux2(SensorType::AuxTemp2, MS2NT(10)); static FuncPair fclt, fiat, faux1, faux2; void validateThermistorConfig(thermistor_conf_s& cfg) { - if ( - cfg.tempC_1 >= cfg.tempC_2 || - cfg.tempC_2 >= cfg.tempC_3 || - cfg.resistance_1 < cfg.resistance_2 || - cfg.resistance_2 < cfg.resistance_3 - ) { - firmwareError(OBD_Engine_Coolant_Temperature_Circuit_Malfunction, "Invalid thermistor configuration: please check that temperatures & resistances are in the correct order."); + if (cfg.tempC_1 >= cfg.tempC_2 || + cfg.tempC_2 >= cfg.tempC_3) { + firmwareError(OBD_Engine_Coolant_Temperature_Circuit_Malfunction, "Invalid thermistor configuration: please check that temperatures are in the ascending order %f %f %f", + cfg.tempC_1, + cfg.tempC_2, + cfg.tempC_3); } }