You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fixing the generation for Attribute Min Max used in endpoint_config.h (#1617)
- Fixing the generation of min and max values to be auto assumed and generated correctly when either min or max are mentioned instead of both min and max
- Also making sure we do not always typecase everything to (uint16_t) but instead typecast the values based on size and sign
- Updating existing tests
- For unit testing removing max from BallastFactorAdjustment attribute and making sure 0xFF is generated for '{ (uint8_t)0xFF, (uint8_t)0x64, (uint8_t)0xFF }, /* BallastFactorAdjustment */'
- Github: ZAP#1615
Copy file name to clipboardExpand all lines: test/resource/custom-cluster/matter-custom.xml
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -52,7 +52,7 @@ limitations under the License.
52
52
53
53
<!-- Use the cluster extension Extend the on/off cluster -->
54
54
<clusterExtensioncode="0x0006">
55
-
<attributeside="server"code="0xFFF10000"define="SAMPLE_MFG_SPECIFIC_TRANSITION_TIME_2"type="INT8U"min="0x0000"max="0xFFFF"writable="true"default="0x0000"optional="true">Sample Mfg Specific Attribute 2</attribute>
55
+
<attributeside="server"code="0xFFF10000"define="SAMPLE_MFG_SPECIFIC_TRANSITION_TIME_2"type="INT8U"min="0x0000"max="0xFF"writable="true"default="0x0000"optional="true">Sample Mfg Specific Attribute 2</attribute>
56
56
<attributeside="server"code="0xFFF10001"define="SAMPLE_MFG_SPECIFIC_TRANSITION_TIME_4"type="INT16U"min="0x0000"max="0xFFFF"writable="true"default="0x0000"optional="true">Sample Mfg Specific Attribute 4</attribute>
0 commit comments