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 Jan 22, 2024
1 parent 0e67c82 commit dfe39bb
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 @@ -410,7 +410,7 @@ MatterThermostatClusterServerPreAttributeChangedCallback(const app::ConcreteAttr
}
auto RequestedSystemMode = static_cast<ThermostatSystemMode>(*value);
if (ControlSequenceOfOperation > ThermostatControlSequence::kCoolingAndHeatingWithReheat ||
RequestedSystemMode > ThermostatSystemMode::kFanOnly)
RequestedSystemMode > ThermostatSystemMode::kSleep)
{
return imcode::InvalidValue;
}
Expand Down

0 comments on commit dfe39bb

Please sign in to comment.