Bluetooth: Audio: MCC memset discover params for included
The discovery parameters may contain values from previous discovery calls. The simply and future proof solution to this is to simply memset it before using it. Signed-off-by: Emil Gydesen <emil.gydesen@nordicsemi.no>
This commit is contained in:
parent
b7c2629a6f
commit
9c129c5bc7
1 changed files with 2 additions and 0 deletions
|
@ -1296,6 +1296,8 @@ static void discover_included(struct mcs_instance_t *mcs_inst, struct bt_conn *c
|
|||
{
|
||||
int err;
|
||||
|
||||
memset(&mcs_inst->discover_params, 0, sizeof(mcs_inst->discover_params));
|
||||
|
||||
mcs_inst->discover_params.start_handle = mcs_inst->start_handle;
|
||||
mcs_inst->discover_params.end_handle = mcs_inst->end_handle;
|
||||
mcs_inst->discover_params.type = BT_GATT_DISCOVER_INCLUDE;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue