always capture current room temp, even if its not valid

This commit is contained in:
proddy
2020-06-26 15:23:57 +02:00
parent f57f6b1095
commit a3644d08dd

View File

@@ -1059,12 +1059,8 @@ void Thermostat::process_JunkersMonitor(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);
// if current room temp starts with 0x90 it's usually trouble
// 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_value(hc->curr_roomTemp, 0); // is * 10
telegram->read_bitvalue(hc->mode_type, 10, 1);
telegram->read_bitvalue(hc->mode, 10, 0); // bit 1, mode (auto=1 or manual=0)