From eb180052bb9ddeab9e65010ac36705e1ee7284ca Mon Sep 17 00:00:00 2001 From: Vinayak Kariappa Chettimada Date: Tue, 10 Sep 2024 22:09:44 +0200 Subject: [PATCH] samples: Bluetooth: iso_broadcast: Restrict max stream sync Restrict possible maximum stream synchronization to implementation defined 2 stream, as structure declarations in the implementation is limited to 2. Signed-off-by: Vinayak Kariappa Chettimada --- samples/bluetooth/iso_receive/src/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/samples/bluetooth/iso_receive/src/main.c b/samples/bluetooth/iso_receive/src/main.c index 989694907b4..b7714e08b21 100644 --- a/samples/bluetooth/iso_receive/src/main.c +++ b/samples/bluetooth/iso_receive/src/main.c @@ -22,7 +22,7 @@ #define PA_RETRY_COUNT 6 -#define BIS_ISO_CHAN_COUNT 2 +#define BIS_ISO_CHAN_COUNT MIN(2U, CONFIG_BT_ISO_MAX_CHAN) static bool per_adv_found; static bool per_adv_lost;