diff options
author | Angus Gratton <angus@redyak.com.au> | 2023-11-30 14:32:41 +1100 |
---|---|---|
committer | Damien George <damien@micropython.org> | 2023-12-08 12:48:50 +1100 |
commit | df3948d3c23e3572c49d18ede03bf3ac97ee601c (patch) | |
tree | 7435061520a222a0ef859535a6c814d9eaffb486 /extmod/modlwip.c | |
parent | f5be0128e4da1417136495c20888f8291cd22386 (diff) |
extmod: Switch to use new event functions.
See previous commit for details of these functions. As of this commit,
these still call the old hook macros on all ports.
This work was funded through GitHub Sponsors.
Signed-off-by: Angus Gratton <angus@redyak.com.au>
Diffstat (limited to 'extmod/modlwip.c')
-rw-r--r-- | extmod/modlwip.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/extmod/modlwip.c b/extmod/modlwip.c index 432b97e8f..6f8703d5a 100644 --- a/extmod/modlwip.c +++ b/extmod/modlwip.c @@ -318,11 +318,7 @@ typedef struct _lwip_socket_obj_t { } lwip_socket_obj_t; static inline void poll_sockets(void) { - #ifdef MICROPY_EVENT_POLL_HOOK - MICROPY_EVENT_POLL_HOOK; - #else - mp_hal_delay_ms(1); - #endif + mp_event_wait_ms(1); } STATIC struct tcp_pcb *volatile *lwip_socket_incoming_array(lwip_socket_obj_t *socket) { |