From 11050123578d1388623dc2fd7c808ec5d41ca6fa Mon Sep 17 00:00:00 2001 From: Hunsup Jung Date: Mon, 22 Jan 2024 20:32:04 +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 91d9b33da69ca5..d92979ad32ce94 100644 --- a/src/app/clusters/thermostat-server/thermostat-server.cpp +++ b/src/app/clusters/thermostat-server/thermostat-server.cpp @@ -438,7 +438,7 @@ MatterThermostatClusterServerPreAttributeChangedCallback(const app::ConcreteAttr } auto RequestedSystemMode = static_cast(*value); if (ControlSequenceOfOperation > ControlSequenceOfOperationEnum::kCoolingAndHeatingWithReheat || - RequestedSystemMode > SystemModeEnum::kFanOnly) + RequestedSystemMode > SystemModeEnum::kSleep) { return imcode::InvalidValue; }