Skip to content

Commit

Permalink
applications: nrf5340_audio: Change uuid_buf to static
Browse files Browse the repository at this point in the history
- uuid_buf has to be static for the adv data to be correct
- OCT-NONE

Signed-off-by: Alexander Svensen <[email protected]>
  • Loading branch information
alexsven authored and jfischer-no committed Mar 11, 2024
1 parent f45bb4d commit 9f5a261
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion applications/nrf5340_audio/unicast_server/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -422,7 +422,7 @@ static int ext_adv_populate(struct bt_data *ext_adv_buf, size_t ext_adv_buf_size
int ret;
size_t ext_adv_buf_cnt = 0;

NET_BUF_SIMPLE_DEFINE(uuid_buf, CONFIG_EXT_ADV_UUID_BUF_MAX);
NET_BUF_SIMPLE_DEFINE_STATIC(uuid_buf, CONFIG_EXT_ADV_UUID_BUF_MAX);

ext_adv_buf[ext_adv_buf_cnt].type = BT_DATA_UUID16_SOME;
ext_adv_buf[ext_adv_buf_cnt].data_len = 0;
Expand Down

0 comments on commit 9f5a261

Please sign in to comment.