Skip to content

Commit a605c65

Browse files
ping example app throws lwip assert (#309)
Now LWIP_PLATFORM_ASSERT has been fixed we're seeing an assert for the ping example app. It sets the SO_RCVTIMEO socket option which is not enabled. Fixes #308
1 parent 6c3f2da commit a605c65

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

pico_w/freertos/ping/lwipopts.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,10 @@
1616

1717
// not necessary, can be done either way
1818
#define LWIP_TCPIP_CORE_LOCKING_INPUT 1
19+
20+
// ping_thread sets socket receive timeout, so enable this feature
21+
#define LWIP_SO_RCVTIMEO 1
1922
#endif
2023

24+
2125
#endif

0 commit comments

Comments
 (0)