summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ports/rp2/cyw43_configport.h11
1 files changed, 9 insertions, 2 deletions
diff --git a/ports/rp2/cyw43_configport.h b/ports/rp2/cyw43_configport.h
index a5ce8a9e7..848fb9dbf 100644
--- a/ports/rp2/cyw43_configport.h
+++ b/ports/rp2/cyw43_configport.h
@@ -47,8 +47,15 @@
#define CYW43_THREAD_EXIT MICROPY_PY_LWIP_EXIT
#define CYW43_THREAD_LOCK_CHECK
-#define CYW43_SDPCM_SEND_COMMON_WAIT __WFI();
-#define CYW43_DO_IOCTL_WAIT __WFI();
+#define CYW43_SDPCM_SEND_COMMON_WAIT \
+ if (get_core_num() == 0) { \
+ __WFI(); \
+ } \
+
+#define CYW43_DO_IOCTL_WAIT \
+ if (get_core_num() == 0) { \
+ __WFI(); \
+ } \
#define CYW43_ARRAY_SIZE(a) MP_ARRAY_SIZE(a)