From dfe39bbc9c6b602491d04071c7e91b5e4714b742 Mon Sep 17 00:00:00 2001 From: Hunsup Jung Date: Mon, 22 Jan 2024 19:44:12 +0900 Subject: [PATCH] Modify the value that checks for invalid values Signed-off-by: Hunsup Jung --- src/app/clusters/thermostat-server/thermostat-server.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/clusters/thermostat-server/thermostat-server.cpp b/src/app/clusters/thermostat-server/thermostat-server.cpp index 85fa7c7a035322..9c7040a51c8c50 100644 --- a/src/app/clusters/thermostat-server/thermostat-server.cpp +++ b/src/app/clusters/thermostat-server/thermostat-server.cpp @@ -410,7 +410,7 @@ MatterThermostatClusterServerPreAttributeChangedCallback(const app::ConcreteAttr } auto RequestedSystemMode = static_cast(*value); if (ControlSequenceOfOperation > ThermostatControlSequence::kCoolingAndHeatingWithReheat || - RequestedSystemMode > ThermostatSystemMode::kFanOnly) + RequestedSystemMode > ThermostatSystemMode::kSleep) { return imcode::InvalidValue; }