Skip to content

Commit 988c322

Browse files
committed
Merge pull request #1598 from gpummer/issue-1588
Fixes #1588 These changes are made under both the "Apache 2.0" and the "GNU Lesser General Public License 2.1 or later" license terms (dual license). SPDX-License-Identifier: Apache-2.0 OR LGPL-2.1-or-later
2 parents 22ae62a + 3f6b649 commit 988c322

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

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

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,4 +119,11 @@ void netif_poll(struct netif *netif);
119119
typedef void (*tcpip_callback_fn)(void *ctx);
120120
int tcpip_try_callback(tcpip_callback_fn function, void *ctx);
121121

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

0 commit comments

Comments
 (0)