Bluetooth: Increment start handle with next discovery
Next discovery for primary and secondary services shall start from the next handle. Change-Id: I8bc7ccd9a84848d75b2d9ef0484429599b0c750f Signed-off-by: Andrei Emeltchenko <andrei.emeltchenko@intel.com>
This commit is contained in:
parent
5d43dfd704
commit
920a5b1030
1 changed files with 5 additions and 1 deletions
|
@ -740,8 +740,12 @@ static void att_find_type_rsp(struct bt_conn *conn, uint8_t err,
|
|||
goto done;
|
||||
}
|
||||
|
||||
/* Continue for the last found handle */
|
||||
/* Continue from the last found handle */
|
||||
params->start_handle = end_handle;
|
||||
if (params->start_handle < UINT16_MAX) {
|
||||
params->start_handle++;
|
||||
}
|
||||
|
||||
if (!bt_gatt_discover(conn, params)) {
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue