mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2025-12-09 01:09:51 +03:00
fix junkers model detection - #537
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user