aboutsummaryrefslogtreecommitdiff
path: root/stmhal/mphalport.c
diff options
context:
space:
mode:
authorDamien George2017-02-06 15:10:03 +1100
committerDamien George2017-02-06 15:10:03 +1100
commit8400351d5aa9e4378713f042a8170efafbd112ce (patch)
tree19b76b996a42160895df1b76c38f9920cd44b438 /stmhal/mphalport.c
parentdee47949cc8782c2d565de6d6b7e5c1339000061 (diff)
stmhal: Use MICROPY_EVENT_POLL_HOOK instead of __WFI where appropriate.
Diffstat (limited to 'stmhal/mphalport.c')
-rw-r--r--stmhal/mphalport.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/stmhal/mphalport.c b/stmhal/mphalport.c
index a9812362b..ca8e1c1bd 100644
--- a/stmhal/mphalport.c
+++ b/stmhal/mphalport.c
@@ -43,7 +43,7 @@ int mp_hal_stdin_rx_chr(void) {
} else if (MP_STATE_PORT(pyb_stdio_uart) != NULL && uart_rx_any(MP_STATE_PORT(pyb_stdio_uart))) {
return uart_rx_char(MP_STATE_PORT(pyb_stdio_uart));
}
- __WFI();
+ MICROPY_EVENT_POLL_HOOK
}
}