Skip to content
Snippets Groups Projects
Commit 9cf1cbb0 authored by Damien George's avatar Damien George
Browse files

nrf/mphalport: Use wfi to save power while waiting at the UART REPL.

parent 456c89f7
No related branches found
No related tags found
No related merge requests found
......@@ -58,6 +58,7 @@ int mp_hal_stdin_rx_chr(void) {
if (MP_STATE_PORT(board_stdio_uart) != NULL && uart_rx_any(MP_STATE_PORT(board_stdio_uart))) {
return uart_rx_char(MP_STATE_PORT(board_stdio_uart));
}
__WFI();
}
return 0;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment