From b5471aef94ac07c9e3d42c555c4c3b439af3cf96 Mon Sep 17 00:00:00 2001 From: MichaelDvP Date: Wed, 26 Mar 2025 17:03:51 +0100 Subject: [PATCH] fix typo in `set_wwswitchtime`, fixes #2490 --- src/devices/thermostat.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/devices/thermostat.cpp b/src/devices/thermostat.cpp index 7e29724a4..52f07bd20 100644 --- a/src/devices/thermostat.cpp +++ b/src/devices/thermostat.cpp @@ -3619,7 +3619,7 @@ bool Thermostat::set_wwCircSwitchTime(const char * value, const int8_t id) { // sets a single switchtime in the thermostat circulation program for RC35 bool Thermostat::set_wwSwitchTime(const char * value, const int8_t id) { auto dhw = dhw_circuit(id2dhw(id)); - if (dhw != nullptr) { + if (dhw == nullptr) { return false; } char out[sizeof(dhw->wwSwitchTime_)] = {'\0'};