fix typo in set_wwswitchtime, fixes #2490

This commit is contained in:
MichaelDvP
2025-03-26 17:03:51 +01:00
parent f31329ceff
commit b5471aef94

View File

@@ -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'};