drivers/nble: Fix passing uninitialized callback
Initialize callback to NULL. Change-Id: I8c985fc656499f1885fbc58ddfd0f80acf2f18cf Signed-off-by: Andrei Emeltchenko <andrei.emeltchenko@intel.com>
This commit is contained in:
parent
a47638cdda
commit
cde38ed754
1 changed files with 1 additions and 0 deletions
|
@ -369,6 +369,7 @@ int bt_gatt_notify(struct bt_conn *conn, const struct bt_gatt_attr *attr,
|
|||
|
||||
notif.params.attr = (struct bt_gatt_attr *)attr;
|
||||
notif.params.offset = 0;
|
||||
notif.cback = NULL;
|
||||
|
||||
nble_gatt_send_notif_req(¬if, (uint8_t *)data, len);
|
||||
return 0;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue