mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2025-12-08 00:39:50 +03:00
fix thermostat flag detection - #537
This commit is contained in:
@@ -67,14 +67,19 @@ class EMSdevice {
|
||||
return ((device_id & 0x7F) == (device_id_ & 0x7F));
|
||||
}
|
||||
|
||||
inline void add_flags(uint8_t flags) {
|
||||
flags_ |= flags;
|
||||
}
|
||||
inline bool has_flags(uint8_t flags) const {
|
||||
return (flags_ & flags) == flags;
|
||||
}
|
||||
inline void remove_flags(uint8_t flags) {
|
||||
flags_ &= ~flags;
|
||||
}
|
||||
inline uint8_t flags() const {
|
||||
return flags_;
|
||||
}
|
||||
|
||||
inline void flags(uint8_t flags) {
|
||||
flags_ = flags;
|
||||
}
|
||||
|
||||
// see enum DeviceType below
|
||||
inline uint8_t device_type() const {
|
||||
return device_type_;
|
||||
|
||||
Reference in New Issue
Block a user