bluetooth: mesh: use STRUCT_SECTION_ITERABLE_ARRAY
STRUCT_SECTION_ITERABLE cannot be used with arrays, because of preprocessor tokenization issues. Signed-off-by: Gerard Marull-Paretas <gerard.marull@nordicsemi.no>
This commit is contained in:
parent
5dd1e8d145
commit
a8b36ffb4d
1 changed files with 1 additions and 1 deletions
|
@ -84,7 +84,7 @@ static STRUCT_SECTION_ITERABLE(bt_mesh_ext_adv, adv_main) = {
|
|||
};
|
||||
|
||||
#if CONFIG_BT_MESH_RELAY_ADV_SETS
|
||||
static STRUCT_SECTION_ITERABLE(bt_mesh_ext_adv, adv_relay[CONFIG_BT_MESH_RELAY_ADV_SETS]) = {
|
||||
static STRUCT_SECTION_ITERABLE_ARRAY(bt_mesh_ext_adv, adv_relay, CONFIG_BT_MESH_RELAY_ADV_SETS) = {
|
||||
[0 ... CONFIG_BT_MESH_RELAY_ADV_SETS - 1] = {
|
||||
.tag = BT_MESH_RELAY_ADV,
|
||||
.work = Z_WORK_DELAYABLE_INITIALIZER(send_pending_adv),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue