diff options
| author | Glenn Ruben Bakke <glennbakke@gmail.com> | 2017-12-01 21:30:52 +0100 |
|---|---|---|
| committer | Damien George <damien.p.george@gmail.com> | 2018-07-18 17:12:25 +1000 |
| commit | f5ed40116fa93890a3b134f5c6a8a4de41a3346e (patch) | |
| tree | 8c1d508c36b258d9ee4ba84092fb85f58d9c6d35 | |
| parent | 6062d4617037d8936b380eddd914fca8ea195bb8 (diff) | |
nrf: Add if-def around inclusion of nrf_sdm.h in main.
Not all targets are using bluetooth le.
| -rw-r--r-- | ports/nrf/main.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/ports/nrf/main.c b/ports/nrf/main.c index 0d06f3253..e55883578 100644 --- a/ports/nrf/main.c +++ b/ports/nrf/main.c @@ -47,7 +47,6 @@ #include "led.h" #include "uart.h" #include "nrf.h" -#include "nrf_sdm.h" #include "pin.h" #include "spi.h" #include "i2c.h" @@ -57,6 +56,10 @@ #endif #include "timer.h" +#if BLUETOOTH_SD +#include "nrf_sdm.h" +#endif + #if (MICROPY_PY_BLE_NUS) #include "ble_uart.h" #endif |
