Bluetooth: DIS: settings: drop dependency on BT_SETTINGS
Currently BT_DIS_SETTINGS and BT_SETTINGS are independent in Kconfig. This seems fine, because BT_SETTINGS pulls a lot of functionality, which is not really needed to implement DIS with values configured in runtime (from settings subsystem). Drop BT_SETTINGS conditional compilation and leave check on BT_DIS_SETTINGS only. Signed-off-by: Marcin Niestroj <m.niestroj@grinn-global.com>
This commit is contained in:
parent
84e74b6a88
commit
faabbb6809
1 changed files with 2 additions and 2 deletions
|
@ -141,7 +141,7 @@ BT_GATT_SERVICE_DEFINE(dis_svc,
|
|||
|
||||
);
|
||||
|
||||
#if defined(CONFIG_BT_SETTINGS) && defined(CONFIG_BT_DIS_SETTINGS)
|
||||
#if defined(CONFIG_BT_DIS_SETTINGS)
|
||||
static int dis_set(const char *name, size_t len_rd,
|
||||
settings_read_cb read_cb, void *store)
|
||||
{
|
||||
|
@ -236,4 +236,4 @@ static int dis_set(const char *name, size_t len_rd,
|
|||
|
||||
SETTINGS_STATIC_HANDLER_DEFINE(bt_dis, "bt/dis", NULL, dis_set, NULL, NULL);
|
||||
|
||||
#endif /* CONFIG_BT_DIS_SETTINGS && CONFIG_BT_SETTINGS*/
|
||||
#endif /* CONFIG_BT_DIS_SETTINGS*/
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue