From dc2c434ff7b9e4979bc811d79affbb0794688273 Mon Sep 17 00:00:00 2001 From: Luiz Augusto von Dentz Date: Tue, 19 Jan 2016 16:54:23 +0200 Subject: [PATCH] drivers/nble: Add BLUETOOTH_MAX_PAIRED This makes it easier to port samples which may use CONFIG_BLUETOOTH_MAX_PAIRED. Change-Id: I3e37df7cae63a4ac2219ce26408ae4d4f987645d Signed-off-by: Luiz Augusto von Dentz --- drivers/nble/Kconfig | 5 +++++ samples/bluetooth/nble/src/main.c | 2 -- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/drivers/nble/Kconfig b/drivers/nble/Kconfig index 8fcbcec275e..cf9e569f2ab 100644 --- a/drivers/nble/Kconfig +++ b/drivers/nble/Kconfig @@ -35,6 +35,10 @@ config BLUETOOTH_SMP bool default n +config BLUETOOTH_MAX_PAIRED + int + default 7 + config NBLE bool "Support for custom Nordic Semiconductor BLE protocol" default n @@ -43,6 +47,7 @@ config NBLE select BLUETOOTH_CENTRAL select BLUETOOTH_GATT_CLIENT select BLUETOOTH_SMP + select BLUETOOTH_MAX_PAIRED help Enables support for using Nordic Semicondutor nRF51 Bluetooth LE chips with a custom firmware. The API for this is a subset of diff --git a/samples/bluetooth/nble/src/main.c b/samples/bluetooth/nble/src/main.c index f420a204cb8..5e1db24c804 100644 --- a/samples/bluetooth/nble/src/main.c +++ b/samples/bluetooth/nble/src/main.c @@ -30,8 +30,6 @@ #include #include -#define CONFIG_BLUETOOTH_MAX_PAIRED 1 - #define DEVICE_NAME "Test peripheral" #define DEVICE_NAME_LEN 15 #define HEART_RATE_APPEARANCE 0x0341