fix thermostat flag detection - #537

This commit is contained in:
proddy
2020-10-08 10:03:01 +02:00
parent 99880cea2f
commit 7d5a654f52
5 changed files with 17 additions and 11 deletions

View File

@@ -110,9 +110,9 @@ class Thermostat : public EMSdevice {
bool export_values_main(JsonObject & doc);
bool export_values_hc(uint8_t mqtt_format, JsonObject & doc);
// specific thermostat characteristics, stripping the option bits at pos 6 and 7
// specific thermostat characteristics, stripping the write option at bit 7
inline uint8_t model() const {
return (this->flags() & 0x0F);
return (this->flags() & 0x7F);
}
// each thermostat has a list of heating controller type IDs for reading and writing