Skip to content

Fix for PANIC if using sntp with pico-w (#1588) #1598

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
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions src/platforms/rp2/src/lib/lwipopts.h
Original file line number Diff line number Diff line change
Expand Up @@ -106,4 +106,12 @@ void sntp_set_system_time_us(unsigned long sec, unsigned long usec);
#define SNTP_SET_SYSTEM_TIME_US(sec, usec) sntp_set_system_time_us(sec, usec)

#define TCP_LISTEN_BACKLOG 1

// See https://github.com/atomvm/AtomVM/issues/1588
// if we have UDP we assume we also have SNTP; lwip needs one more timer,
// but doesn't account for it
#if LWIP_UDP > 0
#define MEMP_NUM_SYS_TIMEOUT (LWIP_NUM_SYS_TIMEOUT_INTERNAL + 1)
#endif

#endif /* __LWIPOPTS_H__ */