Skip to content

Commit

Permalink
samples: Bluetooth: iso_broadcast: Fix buf alloc timeout
Browse files Browse the repository at this point in the history
Fix buf alloc timeout to 20 millisecond as the sent callback
can have a latency that is upto twice the ISO interval.

Signed-off-by: Vinayak Kariappa Chettimada <[email protected]>
  • Loading branch information
cvinayak committed Sep 10, 2024
1 parent ccdf100 commit 65ab392
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion samples/bluetooth/iso_broadcast/src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
#include <zephyr/bluetooth/iso.h>
#include <zephyr/sys/byteorder.h>

#define BUF_ALLOC_TIMEOUT (10) /* milliseconds */
#define BUF_ALLOC_TIMEOUT (20) /* milliseconds */
#define BIG_TERMINATE_TIMEOUT_US (60 * USEC_PER_SEC) /* microseconds */

Check notice on line 12 in samples/bluetooth/iso_broadcast/src/main.c

View workflow job for this annotation

GitHub Actions / Run compliance checks on patch series (PR)

You may want to run clang-format on this change

samples/bluetooth/iso_broadcast/src/main.c:12 -#define BUF_ALLOC_TIMEOUT (20) /* milliseconds */ +#define BUF_ALLOC_TIMEOUT (20) /* milliseconds */
#define BIG_SDU_INTERVAL_US (10000)

Expand Down

0 comments on commit 65ab392

Please sign in to comment.