mirror of
https://github.com/espressif/esp-nimble.git
synced 2026-06-05 21:04:49 +00:00
fix(nimble): Added parameter in peer_init for included service allocation
This commit is contained in:
@@ -1902,14 +1902,18 @@ ble_gattc_cache_conn_disc_incs(struct ble_gattc_cache_conn *peer)
|
||||
}
|
||||
}
|
||||
}
|
||||
peer->cache_state = INC_DISC_IN_PROGRESS;
|
||||
svc = peer->cur_svc;
|
||||
rc = ble_gattc_find_inc_svcs(peer->conn_handle,
|
||||
svc->svc.start_handle,
|
||||
svc->svc.end_handle,
|
||||
ble_gattc_cache_conn_inc_disced, peer);
|
||||
if (rc != 0) {
|
||||
ble_gattc_cache_conn_disc_chrs(peer);
|
||||
if (svc !=NULL && !ble_gattc_cache_conn_svc_is_empty(svc)) {
|
||||
peer->cache_state = INC_DISC_IN_PROGRESS;
|
||||
rc = ble_gattc_find_inc_svcs(peer->conn_handle,
|
||||
svc->svc.start_handle,
|
||||
svc->svc.end_handle,
|
||||
ble_gattc_cache_conn_inc_disced, peer);
|
||||
if (rc != 0) {
|
||||
ble_gattc_cache_conn_disc_chrs(peer);
|
||||
}
|
||||
} else {
|
||||
ble_gattc_cache_conn_disc_chrs(peer);
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user