From 4f6a84de0bf29f3559a1cf3e83b32f39cde02abc Mon Sep 17 00:00:00 2001 From: RvDesign Date: Sat, 6 Feb 2021 15:49:14 +0100 Subject: [PATCH] update max31855 json temperature name publication For using the thermostat function, publication of the measured temperature was using the wrong name. Changed to the common used name. --- tasmota/xsns_39_max31855.ino | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tasmota/xsns_39_max31855.ino b/tasmota/xsns_39_max31855.ino index fafa9f0de..75f32ca0a 100644 --- a/tasmota/xsns_39_max31855.ino +++ b/tasmota/xsns_39_max31855.ino @@ -143,7 +143,7 @@ void MAX31855_Show(bool Json) { GetTextIndexed(sensor_name, sizeof(sensor_name), Settings.flag4.max6675, kMax31855Types); if (Json) { - ResponseAppend_P(PSTR(",\"%s\":{\"" D_JSON_PROBETEMPERATURE "\":%*_f,\"" D_JSON_REFERENCETEMPERATURE "\":%*_f,\"" D_JSON_ERROR "\":%d}"), \ + ResponseAppend_P(PSTR(",\"%s\":{\"" D_JSON_TEMPERATURE "\":%*_f,\"" D_JSON_REFERENCETEMPERATURE "\":%*_f,\"" D_JSON_ERROR "\":%d}"), \ sensor_name, Settings.flag2.temperature_resolution, &MAX31855_Result.ProbeTemperature, Settings.flag2.temperature_resolution, &MAX31855_Result.ReferenceTemperature, @@ -194,4 +194,4 @@ bool Xsns39(uint8_t function) return result; } -#endif // USE_MAX31855 \ No newline at end of file +#endif // USE_MAX31855