Bluetooth: OTS: Fix calling obj_created callback with NULL conn
Callback was always called with NULL conn. Now it is called with proper pointer or NULL conforming to description. Signed-off-by: Szymon Janc <szymon.janc@codecoup.pl>
This commit is contained in:
parent
b781144438
commit
9631cd14b0
1 changed files with 1 additions and 1 deletions
|
@ -318,7 +318,7 @@ int bt_ots_obj_add_internal(struct bt_ots *ots, struct bt_conn *conn,
|
|||
(void)memset(&created_desc, 0, sizeof(created_desc));
|
||||
|
||||
if (ots->cb->obj_created) {
|
||||
err = ots->cb->obj_created(ots, NULL, new_obj->id, param, &created_desc);
|
||||
err = ots->cb->obj_created(ots, conn, new_obj->id, param, &created_desc);
|
||||
|
||||
if (err) {
|
||||
(void)bt_gatt_ots_obj_manager_obj_delete(new_obj);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue