From 11d4c3a2ed00de08bc3f9a3a35cee0da53875fc6 Mon Sep 17 00:00:00 2001 From: OmAmbalkar <36728913+OmAmbalkar@users.noreply.github.com> Date: Thu, 11 Jan 2024 15:38:31 -0600 Subject: [PATCH] Changing InvalidInState to Constraint Error (#31351) --- .../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))