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:
Emil Gydesen 2025-04-09 11:08:03 +02:00 committed by Benjamin Cabé
commit e02bd58049

View file

@ -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) {