mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2025-12-07 00:09:51 +03:00
style: auto formatting
This commit is contained in:
@@ -43,6 +43,7 @@ using uuid::log::Level;
|
|||||||
#define LOG_NOTICE(...) logger_.notice(__VA_ARGS__)
|
#define LOG_NOTICE(...) logger_.notice(__VA_ARGS__)
|
||||||
#define LOG_WARNING(...) logger_.warning(__VA_ARGS__)
|
#define LOG_WARNING(...) logger_.warning(__VA_ARGS__)
|
||||||
#define LOG_ERROR(...) logger_.err(__VA_ARGS__)
|
#define LOG_ERROR(...) logger_.err(__VA_ARGS__)
|
||||||
|
|
||||||
#define MQTT_TOPIC(list_name) (__pstr__##list_name[0])
|
#define MQTT_TOPIC(list_name) (__pstr__##list_name[0])
|
||||||
|
|
||||||
// clang-format off
|
// clang-format off
|
||||||
|
|||||||
@@ -162,7 +162,6 @@ void Mixer::process_IPMStatusMessage(std::shared_ptr<const Telegram> telegram) {
|
|||||||
// Mixer IPM - 0x001E Temperature Message in unmixed circuits
|
// Mixer IPM - 0x001E Temperature Message in unmixed circuits
|
||||||
// in unmixed circuits FlowTemp in 10C is zero, this is the measured flowtemp in header
|
// in unmixed circuits FlowTemp in 10C is zero, this is the measured flowtemp in header
|
||||||
void Mixer::process_IPMTempMessage(std::shared_ptr<const Telegram> telegram) {
|
void Mixer::process_IPMTempMessage(std::shared_ptr<const Telegram> telegram) {
|
||||||
|
|
||||||
has_update(telegram->read_value(flowTempVf_, 0)); // TC1, is * 10
|
has_update(telegram->read_value(flowTempVf_, 0)); // TC1, is * 10
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -139,12 +139,7 @@ enum DeviceValueTAG : uint8_t {
|
|||||||
};
|
};
|
||||||
|
|
||||||
// mqtt flags for command subscriptions
|
// mqtt flags for command subscriptions
|
||||||
enum MqttSubFlag : uint8_t {
|
enum MqttSubFlag : uint8_t { FLAG_NORMAL = 0, FLAG_HC, FLAG_WWC, FLAG_NOSUB };
|
||||||
FLAG_NORMAL = 0,
|
|
||||||
FLAG_HC,
|
|
||||||
FLAG_WWC,
|
|
||||||
FLAG_NOSUB
|
|
||||||
};
|
|
||||||
|
|
||||||
class EMSdevice {
|
class EMSdevice {
|
||||||
public:
|
public:
|
||||||
@@ -276,12 +271,7 @@ class EMSdevice {
|
|||||||
const __FlashStringHelper * full_name,
|
const __FlashStringHelper * full_name,
|
||||||
uint8_t uom = DeviceValueUOM::NONE);
|
uint8_t uom = DeviceValueUOM::NONE);
|
||||||
|
|
||||||
void register_device_value(uint8_t tag,
|
void register_device_value(uint8_t tag, void * value_p, uint8_t type, const __FlashStringHelper * const * options, const __FlashStringHelper * const * name, uint8_t uom = DeviceValueUOM::NONE);
|
||||||
void * value_p,
|
|
||||||
uint8_t type,
|
|
||||||
const __FlashStringHelper * const * options,
|
|
||||||
const __FlashStringHelper * const * name,
|
|
||||||
uint8_t uom = DeviceValueUOM::NONE);
|
|
||||||
void write_command(const uint16_t type_id, const uint8_t offset, uint8_t * message_data, const uint8_t message_length, const uint16_t validate_typeid);
|
void write_command(const uint16_t type_id, const uint8_t offset, uint8_t * message_data, const uint8_t message_length, const uint16_t validate_typeid);
|
||||||
void write_command(const uint16_t type_id, const uint8_t offset, const uint8_t value, const uint16_t validate_typeid);
|
void write_command(const uint16_t type_id, const uint8_t offset, const uint8_t value, const uint16_t validate_typeid);
|
||||||
void write_command(const uint16_t type_id, const uint8_t offset, const uint8_t value);
|
void write_command(const uint16_t type_id, const uint8_t offset, const uint8_t value);
|
||||||
|
|||||||
Reference in New Issue
Block a user