Samples: Bluetooth: Add () to AUDIO_RING_BUF_BYTES for broadcast source

The BAP broadcast source sample did not properly use
parentheses for the macro, potentially causing issues.

Signed-off-by: Emil Gydesen <emil.gydesen@nordicsemi.no>
This commit is contained in:
Emil Gydesen 2024-05-29 12:51:09 +02:00 committed by David Leach
commit 38d201e063

View file

@ -77,8 +77,8 @@ static struct bt_bap_lc3_preset preset_active = BT_BAP_LC3_BROADCAST_PRESET_24_2
#define USB_BYTES_PER_SAMPLE 2
#define USB_CHANNELS 2
#define RING_BUF_USB_FRAMES 20
#define AUDIO_RING_BUF_BYTES USB_NUM_SAMPLES * USB_BYTES_PER_SAMPLE * RING_BUF_USB_FRAMES
#define RING_BUF_USB_FRAMES 20
#define AUDIO_RING_BUF_BYTES (USB_NUM_SAMPLES * USB_BYTES_PER_SAMPLE * RING_BUF_USB_FRAMES)
#else /* !defined(CONFIG_USB_DEVICE_AUDIO) */
#include <math.h>