From 1e4eb52c90658cb454a2b1d42b33bf655951c2ca Mon Sep 17 00:00:00 2001 From: proddy Date: Sat, 19 Jun 2021 13:30:32 +0200 Subject: [PATCH] auto formatting --- src/devices/solar.cpp | 9 +++++++-- src/devices/solar.h | 1 - src/locale_EN.h | 2 +- 3 files changed, 8 insertions(+), 4 deletions(-) diff --git a/src/devices/solar.cpp b/src/devices/solar.cpp index 2ef6dc954..2edb644d3 100644 --- a/src/devices/solar.cpp +++ b/src/devices/solar.cpp @@ -128,8 +128,13 @@ Solar::Solar(uint8_t device_type, uint8_t device_id, uint8_t product_id, const s register_device_value(TAG_NONE, &energyToday_, DeviceValueType::ULONG, nullptr, FL_(energyToday), DeviceValueUOM::WH); register_device_value(TAG_NONE, &energyTotal_, DeviceValueType::ULONG, FL_(div10), FL_(energyTotal), DeviceValueUOM::KWH); - register_device_value( - TAG_NONE, &heatTransferSystem_, DeviceValueType::BOOL, nullptr, FL_(heatTransferSystem), DeviceValueUOM::BOOLEAN, MAKE_CF_CB(set_heatTransferSystem)); + register_device_value(TAG_NONE, + &heatTransferSystem_, + DeviceValueType::BOOL, + nullptr, + FL_(heatTransferSystem), + DeviceValueUOM::BOOLEAN, + MAKE_CF_CB(set_heatTransferSystem)); register_device_value(TAG_NONE, &externalTank_, DeviceValueType::BOOL, nullptr, FL_(externalTank), DeviceValueUOM::BOOLEAN, MAKE_CF_CB(set_externalTank)); register_device_value( TAG_NONE, &thermalDisinfect_, DeviceValueType::BOOL, nullptr, FL_(thermalDisinfect), DeviceValueUOM::BOOLEAN, MAKE_CF_CB(set_thermalDisinfect)); diff --git a/src/devices/solar.h b/src/devices/solar.h index c19a44b42..502cd249e 100644 --- a/src/devices/solar.h +++ b/src/devices/solar.h @@ -141,7 +141,6 @@ class Solar : public EMSdevice { bool set_climateZone(const char * value, const int8_t id); bool set_collector1Area(const char * value, const int8_t id); bool set_collector1Type(const char * value, const int8_t id); - }; } // namespace emsesp diff --git a/src/locale_EN.h b/src/locale_EN.h index 2d1563594..2ea1b96a1 100644 --- a/src/locale_EN.h +++ b/src/locale_EN.h @@ -173,7 +173,7 @@ MAKE_PSTR(w, "W") MAKE_PSTR(kb, "KB") MAKE_PSTR(seconds, "seconds") MAKE_PSTR(dbm, "dBm") -MAKE_PSTR(num, " ") // this is hack so HA renders numbers correctly +MAKE_PSTR(num, " ") // this is hack so HA renders numbers correctly MAKE_PSTR(bool, " ") // this is hack so HA renders numbers correctly // TAG mapping - maps to DeviceValueTAG_s in emsdevice.cpp