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

reset_error: print correct char field, not struct #296

Merged
merged 1 commit into from
Aug 28, 2024

Conversation

gavanderhoorn
Copy link
Collaborator

@gavanderhoorn gavanderhoorn commented Aug 28, 2024

A rosidl_runtime_c__String is a struct, not a plain char*.

On some architectures/controller platforms it's OK to pass a pointer to the struct (apparently), as the first member is the char*, but at least on FS100 this doesn't work and results in garbage output to the debug log.

A `rosidl_runtime_c__String` is a `struct`, not a plain `char*`.

On some architectures/controller platforms it's OK to pass a pointer to the `struct`, as the first member is the `char*`, but at least on FS100 this doesn't work and results in garbage output to the debug log.
@gavanderhoorn
Copy link
Collaborator Author

There might be more places where we do this, but I happened to notice this one and it made me distrust the FS1 build enough to fix it.

@ted-miller ted-miller merged commit d249d85 into main Aug 28, 2024
14 checks passed
@ted-miller ted-miller deleted the reset_error_print_charp_not_structp branch August 28, 2024 14:17
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