Skip to content

Commit c8cb20a

Browse files
Michael ScottAnas Nashif
Michael Scott
authored and
Anas Nashif
committed
bluetooth: host: fix compile break with CONFIG_ASSERT in gatt.c
Fix the attr->handler reference to attr->handle. Change-Id: I4a6ccee7860abf800f51df404979eac18eb26e8e Signed-off-by: Michael Scott <[email protected]>
1 parent 3666fb8 commit c8cb20a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

subsys/bluetooth/host/gatt.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -560,7 +560,7 @@ int bt_gatt_notify(struct bt_conn *conn, const struct bt_gatt_attr *attr,
560560
{
561561
struct notify_data nfy;
562562

563-
__ASSERT(attr && attr->handler, "invalid parameters\n");
563+
__ASSERT(attr && attr->handle, "invalid parameters\n");
564564

565565
if (conn) {
566566
return gatt_notify(conn, attr->handle, data, len);

0 commit comments

Comments
 (0)