mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2025-12-09 09:19:51 +03:00
remove this->, rename flags to model
This commit is contained in:
@@ -85,8 +85,8 @@ class Thermostat : public EMSdevice {
|
||||
return Helpers::hasValue(setpoint_roomTemp);
|
||||
}
|
||||
|
||||
uint8_t get_mode(uint8_t flags) const;
|
||||
uint8_t get_mode_type(uint8_t flags) const;
|
||||
uint8_t get_mode(uint8_t model) const;
|
||||
uint8_t get_mode_type(uint8_t model) const;
|
||||
|
||||
enum Mode : uint8_t {
|
||||
UNKNOWN,
|
||||
@@ -142,9 +142,9 @@ class Thermostat : public EMSdevice {
|
||||
ha_registered_ = b;
|
||||
}
|
||||
|
||||
// specific thermostat characteristics, stripping the last 4 bits
|
||||
// specific thermostat characteristics, stripping the top 4 bits
|
||||
inline uint8_t model() const {
|
||||
return (this->flags() & 0x0F);
|
||||
return (flags() & 0x0F);
|
||||
}
|
||||
|
||||
// each thermostat has a list of heating controller type IDs for reading and writing
|
||||
|
||||
Reference in New Issue
Block a user