Skip to content

Commit

Permalink
Modify the value that checks for invalid values
Browse files Browse the repository at this point in the history
Signed-off-by: Hunsup Jung <hunsup.jung@samsung.com>
  • Loading branch information
HunsupJung committed Apr 11, 2024
1 parent 15f2c49 commit 1105012
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/clusters/thermostat-server/thermostat-server.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -438,7 +438,7 @@ MatterThermostatClusterServerPreAttributeChangedCallback(const app::ConcreteAttr
}
auto RequestedSystemMode = static_cast<SystemModeEnum>(*value);
if (ControlSequenceOfOperation > ControlSequenceOfOperationEnum::kCoolingAndHeatingWithReheat ||
RequestedSystemMode > SystemModeEnum::kFanOnly)
RequestedSystemMode > SystemModeEnum::kSleep)
{
return imcode::InvalidValue;
}
Expand Down

0 comments on commit 1105012

Please sign in to comment.