From f8a71311ed5876bb7b4a97f18043aa67f5621c8e Mon Sep 17 00:00:00 2001 From: Glenn Ruben Bakke Date: Sat, 4 Feb 2017 16:24:50 +0100 Subject: [PATCH] nrf5/sdk: Adding compilation config whether to include BLE NUS implementation. Config found in sdk/nrf5_sdk_conf.h. NUS enabled for s132 targets by default. --- nrf5/sdk/sdk_12.1.0/nrf52_ble.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/nrf5/sdk/sdk_12.1.0/nrf52_ble.c b/nrf5/sdk/sdk_12.1.0/nrf52_ble.c index abaec5eac4..7a47f704ee 100644 --- a/nrf5/sdk/sdk_12.1.0/nrf52_ble.c +++ b/nrf5/sdk/sdk_12.1.0/nrf52_ble.c @@ -1,3 +1,7 @@ +#include "py/mpconfig.h" + +#if MICROPY_PY_BLE_NUS + #include "nrf52_ble.h" #include "nrf52_board.h" @@ -485,3 +489,5 @@ mp_hal_stdin_rx_chr() power_manage(); } } + +#endif // MICROPY_PY_BLE_NUS