Bluetooth/shell: Clear subscription on gatt_unsubscribe()
Clear subscription allowing to test subscribe / unsubscribe in sequence. Change-Id: Ife8b994410107f05c23687e3fb23b4a81cad8ce7 Signed-off-by: Andrei Emeltchenko <andrei.emeltchenko@intel.com>
This commit is contained in:
parent
1ec4ec237b
commit
489b0ff793
|
@ -1038,6 +1038,9 @@ static void cmd_gatt_unsubscribe(int argc, char *argv[])
|
||||||
} else {
|
} else {
|
||||||
printk("Unsubscribe success\n");
|
printk("Unsubscribe success\n");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Clear subscribe_params to reuse it */
|
||||||
|
memset(&subscribe_params, 0, sizeof(subscribe_params));
|
||||||
}
|
}
|
||||||
|
|
||||||
static void auth_passkey_display(struct bt_conn *conn, unsigned int passkey)
|
static void auth_passkey_display(struct bt_conn *conn, unsigned int passkey)
|
||||||
|
|
Loading…
Reference in a new issue