From 5b33acba5e65b174101bec51f7179a7ce3688b8c Mon Sep 17 00:00:00 2001 From: proddy Date: Mon, 3 Feb 2025 20:34:56 +0100 Subject: [PATCH] auto-formatting --- src/core/emsdevice.cpp | 4 ++-- src/devices/boiler.cpp | 8 ++++---- src/test/test.cpp | 2 +- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/core/emsdevice.cpp b/src/core/emsdevice.cpp index c96561a08..89eefb479 100644 --- a/src/core/emsdevice.cpp +++ b/src/core/emsdevice.cpp @@ -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())) { char entity[70]; if (tag < DeviceValueTAG::TAG_HC1) { - strncpy(entity, short_name, sizeof(entity)-1); + strncpy(entity, short_name, sizeof(entity) - 1); } else { 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_) { char entity_name[70]; 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 { snprintf(entity_name, sizeof(entity_name), "%s/%s", tag_to_mqtt(dv.tag), dv.short_name); } diff --git a/src/devices/boiler.cpp b/src/devices/boiler.cpp index b73108ae8..e5f02c6a1 100644 --- a/src/devices/boiler.cpp +++ b/src/devices/boiler.cpp @@ -1211,8 +1211,8 @@ void Boiler::process_UBAFactory(std::shared_ptr telegram) { return; } toggle_fetch(telegram->type_id, false); // only read once - uint8_t min = 0; - uint8_t max = 0; + uint8_t min = 0; + uint8_t max = 0; uint8_t nomPower = 0; telegram->read_value(nomPower, 4); telegram->read_value(min, 5); @@ -1779,8 +1779,8 @@ void Boiler::process_UBAOutdoorTemp(std::shared_ptr telegram) { // UBASetPoint 0x1A void Boiler::process_UBASetPoints(std::shared_ptr telegram) { - uint8_t setFlowTemp_ = 0; - uint8_t setBurnPow_ = 0; + uint8_t setFlowTemp_ = 0; + uint8_t setBurnPow_ = 0; uint8_t wwSetBurnPow_ = 0; telegram->read_value(setFlowTemp_, 0); telegram->read_value(setBurnPow_, 1); diff --git a/src/test/test.cpp b/src/test/test.cpp index 73a834cbe..86069e15e 100644 --- a/src/test/test.cpp +++ b/src/test/test.cpp @@ -637,7 +637,7 @@ void Test::run_test(uuid::console::Shell & shell, const std::string & cmd, const request.url("/api/thermostat/hc2/entities"); EMSESP::webAPIService.webAPIService(&request); Serial.println(); - + request.url("/api/thermostat/entities"); EMSESP::webAPIService.webAPIService(&request);