summaryrefslogtreecommitdiff
path: root/peripheral
diff options
context:
space:
mode:
Diffstat (limited to 'peripheral')
-rw-r--r--peripheral/gatt.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/peripheral/gatt.c b/peripheral/gatt.c
index 4c5531d81..5ae19a8e5 100644
--- a/peripheral/gatt.c
+++ b/peripheral/gatt.c
@@ -145,8 +145,8 @@ static struct gatt_conn *gatt_conn_new(int fd)
return NULL;
}
- bt_gatt_client_set_ready_handler(conn->client,
- client_ready_callback, conn, NULL);
+ bt_gatt_client_ready_register(conn->client, client_ready_callback,
+ conn, NULL);
bt_gatt_client_set_service_changed(conn->client,
client_service_changed_callback, conn, NULL);