Skip to content

Commit e02bd58

Browse files
Thalleykartben
authored andcommitted
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>
1 parent 6a37f32 commit e02bd58

File tree

1 file changed

+1
-1
lines changed
  • samples/bluetooth/bap_unicast_server/src

1 file changed

+1
-1
lines changed

samples/bluetooth/bap_unicast_server/src/main.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -509,7 +509,7 @@ static void stream_recv_lc3_codec(struct bt_bap_stream *stream,
509509
const struct bt_iso_recv_info *info,
510510
struct net_buf *buf)
511511
{
512-
const bool valid_data = (info->flags & BT_ISO_FLAGS_VALID) == 0;
512+
const bool valid_data = (info->flags & BT_ISO_FLAGS_VALID) != 0;
513513
const int octets_per_frame = buf->len / frames_per_sdu;
514514

515515
if (lc3_decoder == NULL) {

0 commit comments

Comments
 (0)