Skip to content

Commit 9e7cabb

Browse files
authored
Reordering of struct EmberAfAttributeMetadata members (#878)
* Reordering of struct EmberAfAttributeMetadata members * Test updated
1 parent bedd8db commit 9e7cabb

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src-electron/generator/helper-endpointconfig.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -288,7 +288,7 @@ function endpoint_attribute_list(options) {
288288
}
289289
finalDefaultValue = `ZAP_SIMPLE_DEFAULT(${defaultValue})`
290290
}
291-
ret += ` { ${at.id}, ${at.type}, ${at.size}, ${mask}, ${finalDefaultValue} }, /* ${at.name} */ \\\n`
291+
ret += ` { ${finalDefaultValue}, ${at.id}, ${at.size}, ${at.type}, ${mask} }, /* ${at.name} */ \\\n`
292292
})
293293
ret += '}\n'
294294

test/endpoint-config.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@ test(
199199
'{ ZAP_REPORT_DIRECTION(REPORTED), 0x0029, 0x00000101, 0x00000000, ZAP_CLUSTER_MASK(SERVER), 0x0000, {{ 0, 65534, 0 }} }, /* lock state */'
200200
)
201201
expect(epc).toContain(
202-
'{ 0x00000004, ZAP_TYPE(CHAR_STRING), 33, ZAP_ATTRIBUTE_MASK(TOKENIZE), ZAP_LONG_DEFAULTS_INDEX(0) }'
202+
'{ ZAP_LONG_DEFAULTS_INDEX(0), 0x00000004, 33, ZAP_TYPE(CHAR_STRING), ZAP_ATTRIBUTE_MASK(TOKENIZE) }'
203203
)
204204
expect(epc.includes(bin.hexToCBytes(bin.stringToHex('Very long user id'))))
205205
expect(epc).toContain('#define FIXED_NETWORKS { 1, 1, 2 }')

0 commit comments

Comments
 (0)