Skip to content

Commit

Permalink
Allowing null values to be set for SelectedDrynessLevel (#31522)
Browse files Browse the repository at this point in the history
* Allowing null values to be set for SelectedDrynessLevel in LaundryDryerControls

* Restyled by clang-format

---------

Co-authored-by: Restyled.io <commits@restyled.io>
  • Loading branch information
2 people authored and pull[bot] committed Feb 29, 2024
1 parent 19b1456 commit 1238864
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,10 @@ Status MatterLaundryDryerControlsClusterServerPreAttributeChangedCallback(const
{
case Attributes::SelectedDrynessLevel::Id: {
uint8_t drynessLevelIdx = 0;
if (NumericAttributeTraits<uint8_t>::IsNullValue(*value))
{
return Status::Success;
}
while (true)
{
DrynessLevelEnum supportedDryness;
Expand Down

0 comments on commit 1238864

Please sign in to comment.