From 608500e41748a882f460b62ba8bc6007eddf927d Mon Sep 17 00:00:00 2001 From: MichaelDvP Date: Sun, 12 Feb 2023 17:28:44 +0100 Subject: [PATCH] fix RC30_N hc detection #786 --- src/devices/thermostat.cpp | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/devices/thermostat.cpp b/src/devices/thermostat.cpp index b949bb01e..21f8c16c9 100644 --- a/src/devices/thermostat.cpp +++ b/src/devices/thermostat.cpp @@ -1195,11 +1195,8 @@ void Thermostat::process_RC35Monitor(std::shared_ptr telegram) { // exit if the 15th byte (second from last) is 0x00, which I think is calculated flow setpoint temperature // with weather controlled RC35s this value is >=5, otherwise can be zero and our setpoint temps will be incorrect // see https://github.com/emsesp/EMS-ESP/issues/373#issuecomment-627907301 - if (telegram->offset > 0 || telegram->message_length < 15) { - return; - } - - if (telegram->message_data[14] == 0x00) { + // some RC30_N have only 13 byte, use byte 0 for active detection. + if (telegram->offset > 0 || telegram->message_data[0] == 0x00) { return; }