mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2026-01-26 16:49:11 +03:00
formatting
This commit is contained in:
@@ -475,12 +475,12 @@ void TemperatureSensor::publish_values(const bool force) {
|
||||
|
||||
if (force) {
|
||||
if (Mqtt::publish_single()) {
|
||||
for (const auto & sensor : sensors_) {
|
||||
publish_sensor(sensor);
|
||||
}
|
||||
for (const auto & sensor : sensors_) {
|
||||
publish_sensor(sensor);
|
||||
}
|
||||
return;
|
||||
} else if (!EMSESP::mqtt_.get_publish_onchange(0)) {
|
||||
return; // wait for first time periode
|
||||
return; // wait for first time period
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user