lwip_freertos_init asserts if you call it twice #2426

Closed
opened 2025-04-16 07:48:42 -05:00 by peterharperuk · 1 comment
peterharperuk commented 2025-04-16 07:48:42 -05:00 (Migrated from github.com)

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?

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 commented 2025-07-21 04:41:20 -05:00 (Migrated from github.com)

I'm not sure I agree with myself. Can't remember why I raised this, so closing.

I'm not sure I agree with myself. Can't remember why I raised this, so closing.
Sign in to join this conversation.
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
gh-raspberrypi/pico-sdk#2426
No description provided.