mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2025-12-06 15:59:52 +03:00
auto-formatting
This commit is contained in:
@@ -586,7 +586,7 @@ void EMSdevice::add_device_value(int8_t tag, // to b
|
|||||||
if ((entityCustomization.product_id == product_id()) && (entityCustomization.device_id == device_id())) {
|
if ((entityCustomization.product_id == product_id()) && (entityCustomization.device_id == device_id())) {
|
||||||
char entity[70];
|
char entity[70];
|
||||||
if (tag < DeviceValueTAG::TAG_HC1) {
|
if (tag < DeviceValueTAG::TAG_HC1) {
|
||||||
strncpy(entity, short_name, sizeof(entity)-1);
|
strncpy(entity, short_name, sizeof(entity) - 1);
|
||||||
} else {
|
} else {
|
||||||
snprintf(entity, sizeof(entity), "%s/%s", tag_to_mqtt(tag), short_name);
|
snprintf(entity, sizeof(entity), "%s/%s", tag_to_mqtt(tag), short_name);
|
||||||
}
|
}
|
||||||
@@ -1201,7 +1201,7 @@ void EMSdevice::setCustomizationEntity(const std::string & entity_id) {
|
|||||||
for (auto & dv : devicevalues_) {
|
for (auto & dv : devicevalues_) {
|
||||||
char entity_name[70];
|
char entity_name[70];
|
||||||
if (dv.tag < DeviceValueTAG::TAG_HC1) {
|
if (dv.tag < DeviceValueTAG::TAG_HC1) {
|
||||||
strncpy(entity_name, dv.short_name, sizeof(entity_name)-1);
|
strncpy(entity_name, dv.short_name, sizeof(entity_name) - 1);
|
||||||
} else {
|
} else {
|
||||||
snprintf(entity_name, sizeof(entity_name), "%s/%s", tag_to_mqtt(dv.tag), dv.short_name);
|
snprintf(entity_name, sizeof(entity_name), "%s/%s", tag_to_mqtt(dv.tag), dv.short_name);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1211,8 +1211,8 @@ void Boiler::process_UBAFactory(std::shared_ptr<const Telegram> telegram) {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
toggle_fetch(telegram->type_id, false); // only read once
|
toggle_fetch(telegram->type_id, false); // only read once
|
||||||
uint8_t min = 0;
|
uint8_t min = 0;
|
||||||
uint8_t max = 0;
|
uint8_t max = 0;
|
||||||
uint8_t nomPower = 0;
|
uint8_t nomPower = 0;
|
||||||
telegram->read_value(nomPower, 4);
|
telegram->read_value(nomPower, 4);
|
||||||
telegram->read_value(min, 5);
|
telegram->read_value(min, 5);
|
||||||
@@ -1779,8 +1779,8 @@ void Boiler::process_UBAOutdoorTemp(std::shared_ptr<const Telegram> telegram) {
|
|||||||
|
|
||||||
// UBASetPoint 0x1A
|
// UBASetPoint 0x1A
|
||||||
void Boiler::process_UBASetPoints(std::shared_ptr<const Telegram> telegram) {
|
void Boiler::process_UBASetPoints(std::shared_ptr<const Telegram> telegram) {
|
||||||
uint8_t setFlowTemp_ = 0;
|
uint8_t setFlowTemp_ = 0;
|
||||||
uint8_t setBurnPow_ = 0;
|
uint8_t setBurnPow_ = 0;
|
||||||
uint8_t wwSetBurnPow_ = 0;
|
uint8_t wwSetBurnPow_ = 0;
|
||||||
telegram->read_value(setFlowTemp_, 0);
|
telegram->read_value(setFlowTemp_, 0);
|
||||||
telegram->read_value(setBurnPow_, 1);
|
telegram->read_value(setBurnPow_, 1);
|
||||||
|
|||||||
Reference in New Issue
Block a user