Skip to content
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

handling enums and bitmaps declared as unsigned integers in Unify XML #1468

Merged

Conversation

dhchandw
Copy link
Collaborator

Unify XMLs have some enums and bitmaps declared as unsigned integers. While they work on cleaning up their XML - added support in ZAP to infer these inconsistencies correctly.

let correctedType = dataType == dbEnum.zclType.enum ? 'enum' : 'map'
a.type = a.type.toLowerCase().replace('uint', correctedType)
env.logWarning(
`Warning: ${correctedType} ${a.name} is declared as uint in Unify XMLs. Replacing with ${correctedType} -${a.type}`
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Warning: ${a.name} is declared incorrectly as ${a.type} in XML. Replace ${a.type} with ${correctedType}

@dhchandw dhchandw merged commit c9e27b5 into project-chip:master Oct 24, 2024
14 checks passed
@dhchandw dhchandw deleted the task/Unify/handleXMLinconsistencies branch October 30, 2024 19:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants