mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2025-12-12 02:39:58 +03:00
always capture current room temp, even if its not valid
This commit is contained in:
@@ -1059,11 +1059,7 @@ void Thermostat::process_JunkersMonitor(std::shared_ptr<const Telegram> telegram
|
|||||||
void Thermostat::process_RC300Monitor(std::shared_ptr<const Telegram> telegram) {
|
void Thermostat::process_RC300Monitor(std::shared_ptr<const Telegram> telegram) {
|
||||||
std::shared_ptr<Thermostat::HeatingCircuit> hc = heating_circuit(telegram);
|
std::shared_ptr<Thermostat::HeatingCircuit> hc = heating_circuit(telegram);
|
||||||
|
|
||||||
// if current room temp starts with 0x90 it's usually trouble
|
telegram->read_value(hc->curr_roomTemp, 0); // is * 10
|
||||||
// room temperatur is valid if bit 5 in data[2] is set
|
|
||||||
if (telegram->message_data[2] & 0x40) {
|
|
||||||
telegram->read_value(hc->curr_roomTemp, 0); // is * 10
|
|
||||||
}
|
|
||||||
|
|
||||||
telegram->read_bitvalue(hc->mode_type, 10, 1);
|
telegram->read_bitvalue(hc->mode_type, 10, 1);
|
||||||
telegram->read_bitvalue(hc->mode, 10, 0); // bit 1, mode (auto=1 or manual=0)
|
telegram->read_bitvalue(hc->mode, 10, 0); // bit 1, mode (auto=1 or manual=0)
|
||||||
|
|||||||
Reference in New Issue
Block a user