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.
This commit is contained in:
RvDesign 2021-02-06 15:49:14 +01:00 committed by GitHub
parent 4096990d3f
commit 4f6a84de0b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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
#endif // USE_MAX31855