Skip to content

Commit

Permalink
nrf/mphalport: Use wfi to save power while waiting at the UART REPL.
Browse files Browse the repository at this point in the history
  • Loading branch information
dpgeorge committed May 22, 2019
1 parent 456c89f commit 9cf1cbb
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions ports/nrf/mphalport.c
Expand Up @@ -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;
Expand Down

0 comments on commit 9cf1cbb

Please sign in to comment.