summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGlenn Ruben Bakke <glennbakke@gmail.com>2018-02-11 20:05:59 +0100
committerDamien George <damien.p.george@gmail.com>2018-07-18 17:12:25 +1000
commitf679ee209232f9b33efe91755f425e941b6ad55e (patch)
tree4be37fb0956f7e1bcedf7b2c536685bdc883064f
parentf907139fab2bfeb9dcf42430dc61a363c2e27a97 (diff)
nrf/drivers/ble_drv: Fixing sd_ble_enable bug for SD s132 v.2.0.1
Feather52 target which is using SD s132 v.2.0.1 cannot compile due to variable containing RAM start address is not used. This patch enables the correct sd_ble_enable variant for this SD.
-rw-r--r--ports/nrf/drivers/bluetooth/ble_drv.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ports/nrf/drivers/bluetooth/ble_drv.c b/ports/nrf/drivers/bluetooth/ble_drv.c
index 8bc6e927b..61d6573a0 100644
--- a/ports/nrf/drivers/bluetooth/ble_drv.c
+++ b/ports/nrf/drivers/bluetooth/ble_drv.c
@@ -196,7 +196,7 @@ uint32_t ble_drv_stack_enable(void) {
#if (BLUETOOTH_SD == 132)
uint32_t app_ram_start = 0x200039c0;
-#if (BLE_API_VERSION == 3)
+#if (BLE_API_VERSION == 2) || (BLE_API_VERSION == 3)
err_code = sd_ble_enable(&ble_enable_params, &app_ram_start); // 8K SD headroom from linker script.
#elif (BLE_API_VERSION >= 4)
err_code = sd_ble_enable(&app_ram_start); // 8K SD headroom from linker script.