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

Fix pointer type passed to CStr::from_ptr #488

Merged
merged 1 commit into from
Jan 6, 2025
Merged

Conversation

hulthe
Copy link
Contributor

@hulthe hulthe commented Jan 4, 2025

CStr::from_ptr takes a c_char, which is a type alias for either i8 or u8 depending on target.

fixes #487

Copy link
Contributor

@bjoernQ bjoernQ left a comment

Choose a reason for hiding this comment

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

They changed the definition at some point - better to use ffi::c_char

@bjoernQ bjoernQ merged commit 1b2d264 into esp-rs:main Jan 6, 2025
@hulthe hulthe deleted the cstr_cchar branch January 6, 2025 16:47
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.

esp-wifi-sys fails to compile with rustc nightly when feature "sys-logs" is enabled
2 participants