From 3886bb16d14fc9c3c01884d7cd34b4ee94402a79 Mon Sep 17 00:00:00 2001 From: Daniel Thompson Date: Sat, 1 Feb 2020 13:01:54 +0000 Subject: [PATCH] nrf: Fix build BLE NUS and LTO=0 --- ports/nrf/mphalport.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ports/nrf/mphalport.h b/ports/nrf/mphalport.h index b374da403..e99acf8d6 100644 --- a/ports/nrf/mphalport.h +++ b/ports/nrf/mphalport.h @@ -52,6 +52,10 @@ extern const unsigned char mp_hal_status_to_errno_table[4]; NORETURN void mp_hal_raise(HAL_StatusTypeDef status); void mp_hal_set_interrupt_char(int c); // -1 to disable +#if MICROPY_PY_BLE_NUS +#define mp_hal_stdio_poll(poll_flags) (0) +#endif + int mp_hal_stdin_rx_chr(void); void mp_hal_stdout_tx_str(const char *str);