Skip to content

Commit 1ff05c8

Browse files
committedOct 30, 2024
Updated return value when null is written as per spec
1 parent d22a2e2 commit 1ff05c8

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed
 

‎src/app/clusters/fan-control-server/fan-control-server.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ MatterFanControlClusterServerPreAttributeChangedCallback(const ConcreteAttribute
198198
}
199199
else
200200
{
201-
res = Status::WriteIgnored;
201+
res = Status::InvalidInState;
202202
}
203203
}
204204
else
@@ -234,7 +234,7 @@ MatterFanControlClusterServerPreAttributeChangedCallback(const ConcreteAttribute
234234
}
235235
else
236236
{
237-
res = Status::WriteIgnored;
237+
res = Status::InvalidInState;
238238
}
239239
}
240240
else

‎src/app/tests/suites/TestFanControl.yaml

+4
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,8 @@ tests:
6969
attribute: "PercentSetting"
7070
arguments:
7171
value: null
72+
response:
73+
error: INVALID_IN_STATE
7274

7375
- label: "Read back percent setting"
7476
command: "readAttribute"
@@ -105,6 +107,8 @@ tests:
105107
attribute: "SpeedSetting"
106108
arguments:
107109
value: null
110+
response:
111+
error: INVALID_IN_STATE
108112

109113
- label: "Read back speed setting"
110114
command: "readAttribute"

0 commit comments

Comments
 (0)