From 3c16e95cee340f0166db9e2e256728dbf6dc6ac0 Mon Sep 17 00:00:00 2001 From: MichaelDvP Date: Sun, 18 Aug 2024 16:47:14 +0200 Subject: [PATCH] fix read RC300WWtemp, #1950 --- src/devices/thermostat.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/devices/thermostat.cpp b/src/devices/thermostat.cpp index aefacd1c7..cb524acc0 100644 --- a/src/devices/thermostat.cpp +++ b/src/devices/thermostat.cpp @@ -1196,10 +1196,10 @@ void Thermostat::process_RC300WWtemp(std::shared_ptr telegram) { void Thermostat::process_RC300WWmode(std::shared_ptr telegram) { uint8_t circuit = 0; telegram->read_value(circuit, 0); - if (!circuit) { + auto dhw = dhw_circuit(telegram->type_id - 0x2F5, circuit, circuit != 0); + if (dhw == nullptr) { return; } - auto dhw = dhw_circuit(telegram->type_id - 0x2F5, circuit, true); // circulation pump see: https://github.com/Th3M3/buderus_ems-wiki/blob/master/Einstellungen%20der%20Bedieneinheit%20RC310.md has_update(telegram, dhw->wwCircPump_, 1); // FF=off, 0=on ?