From fe67e785f5cd2f62ae686dcd65629d2f2015042b Mon Sep 17 00:00:00 2001 From: MichaelDvP Date: Sun, 15 Nov 2020 17:31:14 +0100 Subject: [PATCH] fix rc300 heatingcurve #610 --- CHANGELOG_LATEST.md | 2 +- src/devices/thermostat.cpp | 10 ++++++++++ 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/CHANGELOG_LATEST.md b/CHANGELOG_LATEST.md index 025954be5..a5e60640f 100644 --- a/CHANGELOG_LATEST.md +++ b/CHANGELOG_LATEST.md @@ -3,7 +3,7 @@ ### Added - function keys in editor: cursor, del, home, end. F1=help, F2=show, and other shortcuts - SM100 pump working time and energy units -- heating curve parameters for RC300 +- heating curve parameters for RC300 (fixed) - `wwonetime` for RC300 thermostat ### Fixed diff --git a/src/devices/thermostat.cpp b/src/devices/thermostat.cpp index fd19f6acb..17c1c1ab9 100644 --- a/src/devices/thermostat.cpp +++ b/src/devices/thermostat.cpp @@ -773,6 +773,16 @@ std::shared_ptr Thermostat::heating_circuit(std::sha } } + // not found, search heating_curve message types + if (hc_num == 0) { + for (uint8_t i = 0; i < curve_typeids.size(); i++) { + if (curve_typeids[i] == telegram->type_id) { + hc_num = i + 1; + break; + } + } + } + // not found, search timer message types if (hc_num == 0) { for (uint8_t i = 0; i < timer_typeids.size(); i++) {