Skip to content

Commit

Permalink
samples: broadcast_config_tool: Clear pba_data on stop
Browse files Browse the repository at this point in the history
- Fixes bug where pba_data was not cleared on bct stop.
- OCT-3151

Signed-off-by: Alexander Svensen <[email protected]>
  • Loading branch information
alexsven committed Oct 4, 2024
1 parent ada3cea commit 093c0b3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions samples/bluetooth/broadcast_config_tool/src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -1035,6 +1035,8 @@ static int broadcaster_stop(const struct shell *shell, uint8_t big_index)
per_adv_buf[big_index].data_len = 0;
per_adv_buf[big_index].type = 0;

memset(pba_data[big_index], 0, sizeof(pba_data[big_index]));

for (size_t j = 0; j < ARRAY_SIZE(ext_adv_buf[big_index]); j++) {
ext_adv_buf[big_index][j].data_len = 0;
ext_adv_buf[big_index][j].type = 0;
Expand Down

0 comments on commit 093c0b3

Please sign in to comment.