Skip to content

Commit 3f6b649

Browse files
committed
issue-1588 inc MEMP_NUM_SYS_TIMEOUT to adopt to sntp requirement
Signed-off-by: Gerold Pummer <[email protected]>
1 parent bcab8ac commit 3f6b649

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/platforms/rp2/src/lib/lwipopts.h

+8
Original file line numberDiff line numberDiff line change
@@ -106,4 +106,12 @@ void sntp_set_system_time_us(unsigned long sec, unsigned long usec);
106106
#define SNTP_SET_SYSTEM_TIME_US(sec, usec) sntp_set_system_time_us(sec, usec)
107107

108108
#define TCP_LISTEN_BACKLOG 1
109+
110+
// See https://github.com/atomvm/AtomVM/issues/1588
111+
// if we have UDP we assume we also have SNTP; lwip needs one more timer,
112+
// but doesn't account for it
113+
#if LWIP_UDP > 0
114+
#define MEMP_NUM_SYS_TIMEOUT (LWIP_NUM_SYS_TIMEOUT_INTERNAL + 1)
115+
#endif
116+
109117
#endif /* __LWIPOPTS_H__ */

0 commit comments

Comments
 (0)