commit | fd8826d4f0b23039c1b7ea1f77d98904523d49be | [log] [tgz] |
---|---|---|
author | Bharat Raju <brdandu@silabs.com> | Mon Sep 22 09:31:45 2025 -0700 |
committer | GitHub <noreply@github.com> | Mon Sep 22 09:31:45 2025 -0700 |
tree | 66fe2ce5d7ae82ed1501b1796d5ade8d810d4299 | |
parent | b7e6050a2cdd69f0b63eb802422c9995baa8816e [diff] |
fix: correct hex padding for as_generated_default_macro to fix 24-bit attribute defaults (#1648) - Ensure proper hex padding based on attribute size (attributeSize * 2 digits) - Fix issue where 0x186A0 for 24-bit attributes generated incorrect byte sequence - Handle both hex (0x prefixed) and decimal input values correctly - Maintain backward compatibility with existing test expectations - Fixes customer-reported issue where 24-bit values were 16x larger than expected - The padding logic now ensures that hex values like 0x186A0 are properly padded to 0x0186A0 for 3-byte attributes, generating the correct byte sequence 0x01, 0x86, 0xA0 instead of 0x18, 0x6A, 0x0. - adding test for little endian as well - JIRA: ZAPP-1658
ZAP is a generic generation engine and user interface for applications and libraries based on Zigbee Cluster Library, the specification developed by the Connectivity Standards Alliance.
ZAP allows you to perform the following:
ZAP is a generic templating engine. Examples are provided for how to generate artifacts for the C language environment, but one could easily add new templates for other language environments, such as C++, java, node.js, python or any other.
Refer to Setup Instructions
Refer to development instructions for more details.
This software is licensed under Apache 2.0 license.