bluetooth: host: Fixed missing guard for BT_SETTINGS_DEFINE
While linking with the IAR linker using generated linker scripts, and with errors if unhandled sections are encountered, many of the bluetooth tests failed because CONFIG_SETTINGS was not set. The section that was not handled was '._settings_handler_static.static.settings_handler_bt_ccc_' Now it's only set if CONFIG_SETTINGS is set. Signed-off-by: Lars-Ove Karlsson <lars-ove.karlsson@iar.com>
This commit is contained in:
parent
dbd0ac40ce
commit
bf29b2a8d7
1 changed files with 2 additions and 0 deletions
|
@ -5888,6 +5888,7 @@ static int ccc_set(const char *name, size_t len_rd, settings_read_cb read_cb,
|
|||
return 0;
|
||||
}
|
||||
|
||||
#ifdef CONFIG_BT_SETTINGS
|
||||
static int ccc_set_cb(const char *name, size_t len_rd, settings_read_cb read_cb,
|
||||
void *cb_arg)
|
||||
{
|
||||
|
@ -5900,6 +5901,7 @@ static int ccc_set_cb(const char *name, size_t len_rd, settings_read_cb read_cb,
|
|||
}
|
||||
|
||||
BT_SETTINGS_DEFINE(ccc, "ccc", ccc_set_cb, NULL);
|
||||
#endif /* CONFIG_BT_SETTINGS */
|
||||
|
||||
static int ccc_set_direct(const char *key, size_t len, settings_read_cb read_cb,
|
||||
void *cb_arg, void *param)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue