-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Fix typo in Ids.h generator. #41826
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix typo in Ids.h generator. #41826
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR fixes a formatting bug in the Jinja template used to generate cluster ID header files. The template was incorrectly using 0x04%X instead of 0x%04X, which resulted in hexadecimal cluster codes being prefixed with an erroneous "4" instead of being properly zero-padded to 4 digits.
- Corrects the format string in the Jinja template from
0x04%Xto0x%04X - Regenerates all affected cluster ID header files with the corrected hex format
Reviewed Changes
Copilot reviewed 143 out of 143 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| scripts/py_matter_idl/matter/idl/generators/cpp/sdk/Ids.h.jinja | Fixes the format string to properly zero-pad hex values instead of adding an erroneous "4" prefix |
| zzz_generated/app-common/clusters/*/Ids.h (multiple files) | Regenerated files with corrected hexadecimal cluster code formatting |
|
PR #41826: Size comparison from bc6337d to be2d8ed Full report (35 builds for bl602, bl702, bl702l, cc13x4_26x4, cc32xx, efr32, esp32, nrfconnect, nxp, psoc6, qpg, realtek, stm32, telink)
|
Summary
This is a small change to fix a typo in the
Ids.h.jinjafile that is used to generate theIds.hfiles for each cluster.This typo caused that and additional "4" was added to each cluster hex code in the file header, this only affects the comment and code remains unchanged.
Testing
CI should validate, change only affects comments so no functional change is expected.