mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2025-12-07 16:29:51 +03:00
auto formatting
This commit is contained in:
@@ -137,9 +137,9 @@ void Mixer::publish_values(JsonObject & json, bool force) {
|
|||||||
if (export_values_format(Mqtt::mqtt_format(), json)) {
|
if (export_values_format(Mqtt::mqtt_format(), json)) {
|
||||||
char topic[30];
|
char topic[30];
|
||||||
if (type() == Type::HC) {
|
if (type() == Type::HC) {
|
||||||
snprintf_P(topic, 30, PSTR("mixer_data_hc%d"),hc_);
|
snprintf_P(topic, 30, PSTR("mixer_data_hc%d"), hc_);
|
||||||
} else {
|
} else {
|
||||||
snprintf_P(topic, 30, PSTR("mixer_data_wwc%d"),hc_);
|
snprintf_P(topic, 30, PSTR("mixer_data_wwc%d"), hc_);
|
||||||
}
|
}
|
||||||
Mqtt::publish(topic, doc.as<JsonObject>());
|
Mqtt::publish(topic, doc.as<JsonObject>());
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user