From badbf40d5cc4029500383fe2f41d4c1922e0d13a Mon Sep 17 00:00:00 2001 From: OmAmbalkar Date: Wed, 10 Jan 2024 16:50:45 -0600 Subject: [PATCH] Changing InvalidInState to Constraint Error --- .../laundry-dryer-controls-server.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/clusters/laundry-dryer-controls-server/laundry-dryer-controls-server.cpp b/src/app/clusters/laundry-dryer-controls-server/laundry-dryer-controls-server.cpp index 3f9e1646f1ec11..32adbefc76ed65 100644 --- a/src/app/clusters/laundry-dryer-controls-server/laundry-dryer-controls-server.cpp +++ b/src/app/clusters/laundry-dryer-controls-server/laundry-dryer-controls-server.cpp @@ -171,7 +171,7 @@ Status MatterLaundryDryerControlsClusterServerPreAttributeChangedCallback(const { // Can't find the attribute to be written in the supported list (CHIP_ERROR_PROVIDER_LIST_EXHAUSTED) // Or can't get the correct supported list - return Status::InvalidInState; + return Status::ConstraintError; } static_assert(sizeof(DrynessLevelEnum) == sizeof(*value), "Enum size doesn't match parameter size"); if (supportedDryness == static_cast(*value))