fix rc300 heatingcurve #610

This commit is contained in:
MichaelDvP
2020-11-15 17:31:14 +01:00
parent fdaddcdbdd
commit fe67e785f5
2 changed files with 11 additions and 1 deletions

View File

@@ -3,7 +3,7 @@
### Added ### Added
- function keys in editor: cursor, del, home, end. F1=help, F2=show, and other shortcuts - function keys in editor: cursor, del, home, end. F1=help, F2=show, and other shortcuts
- SM100 pump working time and energy units - SM100 pump working time and energy units
- heating curve parameters for RC300 - heating curve parameters for RC300 (fixed)
- `wwonetime` for RC300 thermostat - `wwonetime` for RC300 thermostat
### Fixed ### Fixed

View File

@@ -773,6 +773,16 @@ std::shared_ptr<Thermostat::HeatingCircuit> 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 // not found, search timer message types
if (hc_num == 0) { if (hc_num == 0) {
for (uint8_t i = 0; i < timer_typeids.size(); i++) { for (uint8_t i = 0; i < timer_typeids.size(); i++) {