Skip to content

Commit

Permalink
[window-app] Set valid Type for Window Covering cluster (#19311)
Browse files Browse the repository at this point in the history
* [window-app] Set valid Type for Window Covering cluster

If Feature Map of Window Covering cluster has both LF and TL
bits set, Type should be either 6 or 8. Initialize the
attribute to 8 in window-app and all-clusters-app so that
they can pass certification tests.

Signed-off-by: Damian Krolik <damian.krolik@nordicsemi.no>

* Fix tests
  • Loading branch information
Damian-Nordic authored and pull[bot] committed Aug 31, 2023
1 parent 0ad46b6 commit 1537187
Show file tree
Hide file tree
Showing 9 changed files with 12 additions and 18 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4363,7 +4363,7 @@ endpoint 1 {
}

server cluster WindowCovering {
ram attribute type;
ram attribute type default = 0x08;
ram attribute physicalClosedLimitLift default = 0xFFFF;
ram attribute physicalClosedLimitTilt default = 0xFFFF;
persist attribute currentPositionLift default = 0x7FFF;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13602,7 +13602,7 @@
"storageOption": "RAM",
"singleton": 0,
"bounded": 0,
"defaultValue": "0x00",
"defaultValue": "0x08",
"reportable": 1,
"minInterval": 0,
"maxInterval": 65344,
Expand Down
4 changes: 2 additions & 2 deletions examples/window-app/common/window-app.matter
Original file line number Diff line number Diff line change
Expand Up @@ -1893,7 +1893,7 @@ endpoint 1 {
}

server cluster WindowCovering {
ram attribute type;
ram attribute type default = 0x08;
ram attribute physicalClosedLimitLift default = 0xFFFF;
ram attribute physicalClosedLimitTilt default = 0xFFFF;
persist attribute currentPositionLift;
Expand Down Expand Up @@ -1939,7 +1939,7 @@ endpoint 2 {
}

server cluster WindowCovering {
ram attribute type;
ram attribute type default = 0x08;
ram attribute physicalClosedLimitLift default = 0xFFFF;
ram attribute physicalClosedLimitTilt default = 0xFFFF;
persist attribute currentPositionLift;
Expand Down
9 changes: 5 additions & 4 deletions examples/window-app/common/window-app.zap
Original file line number Diff line number Diff line change
Expand Up @@ -8555,7 +8555,7 @@
"storageOption": "RAM",
"singleton": 0,
"bounded": 0,
"defaultValue": "0x00",
"defaultValue": "0x08",
"reportable": 1,
"minInterval": 0,
"maxInterval": 65344,
Expand Down Expand Up @@ -10189,7 +10189,7 @@
"storageOption": "RAM",
"singleton": 0,
"bounded": 0,
"defaultValue": "0x00",
"defaultValue": "0x08",
"reportable": 1,
"minInterval": 0,
"maxInterval": 65344,
Expand Down Expand Up @@ -10596,5 +10596,6 @@
"endpointVersion": 2,
"deviceIdentifier": 514
}
]
}
],
"log": []
}
1 change: 0 additions & 1 deletion src/app/tests/suites/certification/Test_TC_WNCV_2_4.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ tests:
attribute: "Type"
PICS: A_TYPE
response:
value: 0
constraints:
type: enum8
minValue: 0
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion zzz_generated/chip-tool/zap-generated/test/Commands.h

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions zzz_generated/window-app/zap-generated/endpoint_config.h

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 1537187

Please sign in to comment.