fix junkers model detection - #537

This commit is contained in:
proddy
2020-10-08 14:38:41 +02:00
parent 217a2edd96
commit 39ad662506
2 changed files with 15 additions and 12 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 write option at bit 7
// specific thermostat characteristics, stripping the last 4 bits
inline uint8_t model() const {
return (this->flags() & 0x7F);
return (this->flags() & 0x0F);
}
// each thermostat has a list of heating controller type IDs for reading and writing