samples: Bluetooth: BAP: Unicast Server: Fix bad valid check
The valid check was incorrect and instead set valid_data to false for valid data, and true for invalid data. Signed-off-by: Emil Gydesen <emil.gydesen@nordicsemi.no>
This commit is contained in:
parent
6a37f325a4
commit
e02bd58049
1 changed files with 1 additions and 1 deletions
|
@ -509,7 +509,7 @@ static void stream_recv_lc3_codec(struct bt_bap_stream *stream,
|
|||
const struct bt_iso_recv_info *info,
|
||||
struct net_buf *buf)
|
||||
{
|
||||
const bool valid_data = (info->flags & BT_ISO_FLAGS_VALID) == 0;
|
||||
const bool valid_data = (info->flags & BT_ISO_FLAGS_VALID) != 0;
|
||||
const int octets_per_frame = buf->len / frames_per_sdu;
|
||||
|
||||
if (lc3_decoder == NULL) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue