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:
parent
fc7598fa04
commit
12eda22dfe
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue