From a771e1f697c6eab8d23330825697de7a667c32d6 Mon Sep 17 00:00:00 2001 From: iabdalkader Date: Thu, 1 Aug 2024 17:06:19 +0300 Subject: [PATCH] mimxrt/mpmetalport: Use mp_event_handle_nowait() for metal_poll. Signed-off-by: iabdalkader --- ports/mimxrt/mpmetalport.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ports/mimxrt/mpmetalport.h b/ports/mimxrt/mpmetalport.h index 994d57cc39fb..d197bbc02906 100644 --- a/ports/mimxrt/mpmetalport.h +++ b/ports/mimxrt/mpmetalport.h @@ -67,7 +67,8 @@ static inline int __metal_sleep_usec(unsigned int usec) { } static inline void metal_generic_default_poll(void) { - MICROPY_EVENT_POLL_HOOK + mp_event_handle_nowait(); + __WFI(); } #endif // MICROPY_INCLUDED_MIMXRT_METAL_PORT_H