HIU heating/tapwater-active, always use EMSdevice:: for flags

This commit is contained in:
MichaelDvP
2023-11-23 17:24:40 +01:00
parent 96a04da1ff
commit 60beeddb66
3 changed files with 126 additions and 115 deletions

View File

@@ -25,7 +25,7 @@ REGISTER_FACTORY(Controller, EMSdevice::DeviceType::CONTROLLER);
Controller::Controller(uint8_t device_type, uint8_t device_id, uint8_t product_id, const char * version, const char * name, uint8_t flags, uint8_t brand)
: EMSdevice(device_type, device_id, product_id, version, name, flags, brand) {
// IVT broadcasts Thermostat time from controller (0x09) if display is off.
if ((flags & 0x0F) == EMS_DEVICE_FLAG_IVT) {
if ((flags & 0x0F) == EMSdevice::EMS_DEVICE_FLAG_IVT) {
register_telegram_type(0x06, "RCTime", false, MAKE_PF_CB(process_dateTime));
register_device_value(DeviceValueTAG::TAG_DEVICE_DATA, &dateTime_, DeviceValueType::STRING, FL_(dateTime), DeviceValueUOM::NONE);
}