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

update field content handling #16

Merged

Conversation

jonathannilsen
Copy link
Collaborator

  • Remove "trailing zero adjustment"
  • Add a way to get the enum string corresponding to the field content

jonathannilsen added a commit to jonathannilsen/svada that referenced this pull request Nov 21, 2024
jonathannilsen added a commit to jonathannilsen/svada that referenced this pull request Nov 21, 2024
This makes it possible to for example retrieve the enum name that was
set using Field.content.

Signed-off-by: Jonathan Nilsen <[email protected]>
svada should not try to guess what the user meant - instead an
error should be raised if an invalid input is given.
The trailing zero adjustment also only worked with content that
was padded with 4*N zero bits, so it did not work for general
input.

Signed-off-by: Jonathan Nilsen <[email protected]>
@jonathannilsen
Copy link
Collaborator Author

Updated the error message in content_enum slightly to match the ones in content

@jonathannilsen jonathannilsen merged commit 274c49f into NordicSemiconductor:main Nov 28, 2024
1 check passed
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.

2 participants