Bluetooth: GATT: Fix undefined symbols
Change fixes build issues for configurations without Bluetooth. Signed-off-by: Marek Pieta <Marek.Pieta@nordicsemi.no>
This commit is contained in:
parent
d9fa9c6e1c
commit
cc21ff5a8c
2 changed files with 6 additions and 2 deletions
|
@ -622,10 +622,12 @@ ssize_t bt_gatt_attr_read_chrc(struct bt_conn *conn,
|
|||
})), \
|
||||
BT_GATT_ATTRIBUTE(_uuid, _perm, _read, _write, _value)
|
||||
|
||||
#if IS_ENABLED(CONFIG_BT_SETTINGS_CCC_LAZY_LOADING)
|
||||
#if defined(CONFIG_BT_SETTINGS_CCC_LAZY_LOADING)
|
||||
#define BT_GATT_CCC_MAX (CONFIG_BT_MAX_CONN)
|
||||
#else
|
||||
#elif defined(CONFIG_BT_CONN)
|
||||
#define BT_GATT_CCC_MAX (CONFIG_BT_MAX_PAIRED + CONFIG_BT_MAX_CONN)
|
||||
#else
|
||||
#define BT_GATT_CCC_MAX 0
|
||||
#endif
|
||||
|
||||
/** @brief GATT CCC configuration entry. */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue