Skip to content

Commit

Permalink
Bluetooth: GATT: Fix using a wrong handle
Browse files Browse the repository at this point in the history
This patch fixes to use the right handle value.

Fixes zephyrproject-rtos#16341

Signed-off-by: Tedd Ho-Jeong An <[email protected]>
  • Loading branch information
tedd-an authored and jhedberg committed May 23, 2019
1 parent a923c2f commit fccb2e1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion subsys/bluetooth/host/gatt.c
Original file line number Diff line number Diff line change
Expand Up @@ -1536,7 +1536,7 @@ int bt_gatt_indicate(struct bt_conn *conn,
nfy.type = BT_GATT_CCC_INDICATE;
nfy.params = params;

bt_gatt_foreach_attr(params->attr->handle, 0xffff, notify_cb, &nfy);
bt_gatt_foreach_attr(handle, 0xffff, notify_cb, &nfy);

return nfy.err;
}
Expand Down

0 comments on commit fccb2e1

Please sign in to comment.