From b75fe254bf9bf0032e122b2cf8e8ac5c412dcbbd Mon Sep 17 00:00:00 2001 From: man-deli Date: Sat, 23 Jan 2021 10:12:39 -0600 Subject: [PATCH] Wrapping calculated temperature in ConvertTemp function to enable Fahrenheit conversion if selected. --- tasmota/xsns_47_max31865.ino | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tasmota/xsns_47_max31865.ino b/tasmota/xsns_47_max31865.ino index 83bef5e9a..388da057f 100644 --- a/tasmota/xsns_47_max31865.ino +++ b/tasmota/xsns_47_max31865.ino @@ -79,7 +79,7 @@ void MAX31865_GetResult(void) { rtd = max31865[i].readRTD(); MAX31865_Result[i].Rtd = rtd; MAX31865_Result[i].PtdResistance = max31865[i].rtd_to_resistance(rtd, MAX31865_REF_RES); - MAX31865_Result[i].PtdTemp = max31865[i].rtd_to_temperature(rtd, MAX31865_PTD_RES, MAX31865_REF_RES) + MAX31865_PTD_BIAS; + MAX31865_Result[i].PtdTemp = ConvertTemp(max31865[i].rtd_to_temperature(rtd, MAX31865_PTD_RES, MAX31865_REF_RES) + MAX31865_PTD_BIAS); } } }