Bluetooth: tester: Fix attribute uuid type check
This chack shall be performed on attribute uuid type, not uuid provided in Gatt Get Attributes command paramteres. Signed-off-by: Mariusz Skamra <mariusz.skamra@codecoup.pl>
This commit is contained in:
parent
1e8b9766dc
commit
78aa543d6f
1 changed files with 1 additions and 1 deletions
|
@ -1727,7 +1727,7 @@ static u8_t get_attrs_rp(const struct bt_gatt_attr *attr, void *user_data)
|
|||
gatt_attr->handle = sys_cpu_to_le16(attr->handle);
|
||||
gatt_attr->permission = attr->perm;
|
||||
|
||||
if (foreach->uuid->type == BT_UUID_TYPE_16) {
|
||||
if (attr->uuid->type == BT_UUID_TYPE_16) {
|
||||
gatt_attr->type_length = 2;
|
||||
net_buf_simple_add_le16(foreach->buf,
|
||||
BT_UUID_16(attr->uuid)->val);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue