Skip to content
代码片段 群组 项目
未验证 提交 37a1120b 编辑于 作者: paulr34's avatar paulr34 提交者: GitHub
浏览文件

change helper to return kInvalidEndpointId which is a constant in Matter SDK (#1275)

上级 e284ac0b
No related branches found
No related tags found
无相关合并请求
......@@ -103,7 +103,7 @@ function endpoint_fixed_parent_id_array(options) {
let parentIds = []
this.endpoints.forEach((ep) => {
if (ep.parentEndpointIdentifier == null) {
parentIds.push(0)
parentIds.push('kInvalidEndpointId')
} else {
parentIds.push(ep.parentEndpointIdentifier)
}
......
......@@ -158,7 +158,9 @@ test(
expect(ept).toContain(
'#define FIXED_PROFILE_IDS { 0x0103, 0x0103, 0x0103, 0x0103 }'
)
expect(ept).toContain('#define FIXED_PARENT_IDS { 0, 0, 1, 0 }')
expect(ept).toContain(
'#define FIXED_PARENT_IDS { kInvalidEndpointId, 0, 1, kInvalidEndpointId }'
)
expect(ept).toContain(
'#define FIXED_DEVICE_TYPES {{0x00000016,1},{0x00000100,1},{0x00000100,1},{0x0000F002,1}}'
)
......@@ -265,7 +267,9 @@ test(
expect(ept).toContain(
'#define FIXED_PROFILE_IDS { 0x0103, 0x0103, 0x0103, 0x0103 }'
)
expect(ept).toContain('#define FIXED_PARENT_IDS { 0, 0, 0, 0 }')
expect(ept).toContain(
'#define FIXED_PARENT_IDS { kInvalidEndpointId, kInvalidEndpointId, kInvalidEndpointId, kInvalidEndpointId }'
)
expect(ept).toContain(
'#define FIXED_DEVICE_TYPES {{0x00000016,1},{0x00000100,1},{0x00000100,1},{0x0000F002,1}}'
)
......
0% 加载中 .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册