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

Backwards Compatibility Fix (#947)

- Changing the default order of endpoint_attribute_list to what it was such that previously released SDKs continue to build their apps seamlessly. Newer templates can mention this order within the template itself
- fixing the endpoint_config test to default to old order
- JIRA: ZAPP-1081
上级 d8f65035
No related branches found
No related tags found
无相关合并请求
......@@ -249,7 +249,7 @@ function endpoint_attribute_list(options) {
let order = options.hash.order
if (order == null || order.length == 0) {
// This is the default value if none is specified
order = 'default,id,size,type,mask'
order = 'id, type, size, mask, default'
}
let comment = null
......
......@@ -199,7 +199,7 @@ test(
'{ ZAP_REPORT_DIRECTION(REPORTED), 0x0029, 0x00000101, 0x00000000, ZAP_CLUSTER_MASK(SERVER), 0x0000, {{ 0, 65534, 0 }} }, /* lock state */'
)
expect(epc).toContain(
'{ ZAP_LONG_DEFAULTS_INDEX(0), 0x00000004, 33, ZAP_TYPE(CHAR_STRING), ZAP_ATTRIBUTE_MASK(TOKENIZE) }'
'{ 0x00000004, ZAP_TYPE(CHAR_STRING), 33, ZAP_ATTRIBUTE_MASK(TOKENIZE), ZAP_LONG_DEFAULTS_INDEX(0) }'
)
expect(epc.includes(bin.hexToCBytes(bin.stringToHex('Very long user id'))))
expect(epc).toContain('#define FIXED_NETWORKS { 1, 1, 2 }')
......
0% 加载中 .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册