mirror of
https://github.com/arendst/Tasmota.git
synced 2025-07-20 09:16:30 +00:00
safeboot: don't publish sensor valies (#21193)
This commit is contained in:
parent
c1845b952b
commit
87f5fbd5fd
@ -1021,6 +1021,7 @@ bool MqttShowSensor(bool call_show_sensor) {
|
|||||||
|
|
||||||
GetSensorValues();
|
GetSensorValues();
|
||||||
|
|
||||||
|
#ifndef FIRMWARE_SAFEBOOT
|
||||||
if (TasmotaGlobal.global_update && Settings->flag.mqtt_add_global_info) { // SetOption2 (MQTT) Add global temperature/humidity/pressure info to JSON sensor message
|
if (TasmotaGlobal.global_update && Settings->flag.mqtt_add_global_info) { // SetOption2 (MQTT) Add global temperature/humidity/pressure info to JSON sensor message
|
||||||
if ((TasmotaGlobal.humidity > 0) || !isnan(TasmotaGlobal.temperature_celsius) || (TasmotaGlobal.pressure_hpa != 0)) {
|
if ((TasmotaGlobal.humidity > 0) || !isnan(TasmotaGlobal.temperature_celsius) || (TasmotaGlobal.pressure_hpa != 0)) {
|
||||||
uint32_t add_comma = 0;
|
uint32_t add_comma = 0;
|
||||||
@ -1055,6 +1056,7 @@ bool MqttShowSensor(bool call_show_sensor) {
|
|||||||
ResponseJsonEnd();
|
ResponseJsonEnd();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
#endif // FIRMWARE_SAFEBOOT
|
||||||
|
|
||||||
bool json_data_available = (ResponseLength() - json_data_start);
|
bool json_data_available = (ResponseLength() - json_data_start);
|
||||||
MqttAppendSensorUnits();
|
MqttAppendSensorUnits();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user