summaryrefslogtreecommitdiffstatshomepage
path: root/stmhal/uart.c
diff options
context:
space:
mode:
Diffstat (limited to 'stmhal/uart.c')
-rw-r--r--stmhal/uart.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/stmhal/uart.c b/stmhal/uart.c
index 81e6f69a58..d53ca5b80c 100644
--- a/stmhal/uart.c
+++ b/stmhal/uart.c
@@ -334,7 +334,7 @@ STATIC bool uart_rx_wait(pyb_uart_obj_t *self, uint32_t timeout) {
if (HAL_GetTick() - start >= timeout) {
return false; // timeout
}
- __WFI();
+ MICROPY_EVENT_POLL_HOOK
}
}
@@ -375,7 +375,7 @@ STATIC bool uart_tx_wait(pyb_uart_obj_t *self, uint32_t timeout) {
if (HAL_GetTick() - start >= timeout) {
return false; // timeout
}
- __WFI();
+ MICROPY_EVENT_POLL_HOOK
}
}