From e02bd58049b0c7193c077ecad80c934d673eaed9 Mon Sep 17 00:00:00 2001 From: Emil Gydesen Date: Wed, 9 Apr 2025 11:08:03 +0200 Subject: [PATCH] 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 --- samples/bluetooth/bap_unicast_server/src/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/samples/bluetooth/bap_unicast_server/src/main.c b/samples/bluetooth/bap_unicast_server/src/main.c index bdc56a1e4a7..cdf3bb01fe6 100644 --- a/samples/bluetooth/bap_unicast_server/src/main.c +++ b/samples/bluetooth/bap_unicast_server/src/main.c @@ -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) {