Skip to content

lwip_freertos_init asserts if you call it twice #2426

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

Open
peterharperuk opened this issue Apr 16, 2025 · 0 comments
Open

lwip_freertos_init asserts if you call it twice #2426

peterharperuk opened this issue Apr 16, 2025 · 0 comments
Assignees

Comments

@peterharperuk
Copy link
Contributor

You are supposed to be able to call lwip_freertos_init twice as it protects agaist tcpip_init being called twice, but the first line contains assert(!lwip_context);

It should probably be assert(!lwip_context || lwip_context == context); and lwip_context should only be set once?

@peterharperuk peterharperuk self-assigned this Apr 16, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants