samples: Bluetooth: Fix bad info->flags check in unicast_server

The check did not properly check the info->flags as a bitfield,
and thus never decoded the data.

Signed-off-by: Emil Gydesen <emil.gydesen@nordicsemi.no>
This commit is contained in:
Emil Gydesen 2022-05-20 15:38:12 +02:00 committed by Marti Bolivar
parent fc7598fa04
commit 12eda22dfe
1 changed files with 1 additions and 1 deletions

View File

@ -287,7 +287,7 @@ static void stream_recv_lc3_codec(struct bt_audio_stream *stream,
return;
}
if (info->flags != BT_ISO_FLAGS_VALID) {
if ((info->flags & BT_ISO_FLAGS_VALID) == 0) {
printk("Bad packet: 0x%02X\n", info->flags);
in_buf = NULL;