Skip to content

Commit c1e7b2e

Browse files
VinitMehta7492fabiobaltieri
authored andcommitted
samples: bluetooth: pbp_public_broadcast: Align ISO TX netbuf size
- Change netbuf buffer pool to use CONFIG_BT_CONN_TX_USER_DATA_SIZE to avoid inconsistency and have enough buffer room when sending ISO data Signed-off-by: Vinit Mehta <[email protected]>
1 parent 25f98c9 commit c1e7b2e

File tree

1 file changed

+2
-1
lines changed
  • samples/bluetooth/pbp_public_broadcast_source/src

1 file changed

+2
-1
lines changed

samples/bluetooth/pbp_public_broadcast_source/src/main.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,8 @@
3636

3737
NET_BUF_POOL_FIXED_DEFINE(tx_pool,
3838
(BROADCAST_ENQUEUE_COUNT * CONFIG_BT_BAP_BROADCAST_SRC_STREAM_COUNT),
39-
BT_ISO_SDU_BUF_SIZE(CONFIG_BT_ISO_TX_MTU), 8, NULL);
39+
BT_ISO_SDU_BUF_SIZE(CONFIG_BT_ISO_TX_MTU),
40+
CONFIG_BT_CONN_TX_USER_DATA_SIZE, NULL);
4041

4142
static K_SEM_DEFINE(sem_broadcast_started, 0, 1);
4243
static K_SEM_DEFINE(sem_broadcast_stopped, 0, 1);

0 commit comments

Comments
 (0)