mirror of
https://github.com/arendst/Tasmota.git
synced 2025-07-25 11:46:31 +00:00
Merge pull request #10850 from RvDesign/patch-1
update max31855 json temperature name publication
This commit is contained in:
commit
d198183241
@ -143,7 +143,7 @@ void MAX31855_Show(bool Json) {
|
|||||||
GetTextIndexed(sensor_name, sizeof(sensor_name), Settings.flag4.max6675, kMax31855Types);
|
GetTextIndexed(sensor_name, sizeof(sensor_name), Settings.flag4.max6675, kMax31855Types);
|
||||||
|
|
||||||
if (Json) {
|
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,
|
sensor_name,
|
||||||
Settings.flag2.temperature_resolution, &MAX31855_Result.ProbeTemperature,
|
Settings.flag2.temperature_resolution, &MAX31855_Result.ProbeTemperature,
|
||||||
Settings.flag2.temperature_resolution, &MAX31855_Result.ReferenceTemperature,
|
Settings.flag2.temperature_resolution, &MAX31855_Result.ReferenceTemperature,
|
||||||
@ -194,4 +194,4 @@ bool Xsns39(uint8_t function)
|
|||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif // USE_MAX31855
|
#endif // USE_MAX31855
|
||||||
|
Loading…
x
Reference in New Issue
Block a user