samples: Bluetooth: Fix UUID compare
Check for BASS and PACS, while scanning for Broadcast Audio Sinks was wrong in the Broadcast Audio Assistant sample. Signed-off-by: Lars Knudsen <LAKD@demant.com>
This commit is contained in:
parent
bdd09558bb
commit
da62258add
1 changed files with 2 additions and 2 deletions
|
@ -105,12 +105,12 @@ static bool device_found(struct bt_data *data, void *user_data)
|
|||
memcpy(&u16, &data->data[i], sizeof(u16));
|
||||
uuid = BT_UUID_DECLARE_16(sys_le16_to_cpu(u16));
|
||||
|
||||
if (bt_uuid_cmp(uuid, BT_UUID_BASS)) {
|
||||
if (bt_uuid_cmp(uuid, BT_UUID_BASS) == 0) {
|
||||
sr_info->has_bass = true;
|
||||
continue;
|
||||
}
|
||||
|
||||
if (bt_uuid_cmp(uuid, BT_UUID_PACS)) {
|
||||
if (bt_uuid_cmp(uuid, BT_UUID_PACS) == 0) {
|
||||
sr_info->has_pacs = true;
|
||||
continue;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue