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

code generator should use char instead of uint8_t for strings #2

Open
gladish opened this issue Feb 19, 2020 · 0 comments
Open

code generator should use char instead of uint8_t for strings #2

gladish opened this issue Feb 19, 2020 · 0 comments

Comments

@gladish
Copy link
Owner

gladish commented Feb 19, 2020

// {'name': 'Label', 'type': '[32]byte', 'size_bytes': 32}
uint8_t Label[32];

it looks like all places where [n]byte is used is a string. should just make that
char Label[32];

otherwise you have to cast when passing into strcpy() and friends.

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

No branches or pull requests

1 participant