mirror of
https://github.com/espressif/esp-idf.git
synced 2026-10-01 18:50:34 +03:00
fix(nimble): Added parameter in peer_init for included service allocation
This commit is contained in:
@@ -602,13 +602,16 @@ peer_disc_incs(struct peer *peer)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
svc = peer->cur_svc;
|
||||
rc = ble_gattc_find_inc_svcs(peer->conn_handle,
|
||||
svc->svc.start_handle,
|
||||
svc->svc.end_handle,
|
||||
peer_inc_disced, peer);
|
||||
if (rc != 0) {
|
||||
if (svc != NULL && !peer_svc_is_empty(svc)) {
|
||||
rc = ble_gattc_find_inc_svcs(peer->conn_handle,
|
||||
svc->svc.start_handle,
|
||||
svc->svc.end_handle,
|
||||
peer_inc_disced, peer);
|
||||
if (rc != 0) {
|
||||
peer_disc_chrs(peer);
|
||||
}
|
||||
} else {
|
||||
peer_disc_chrs(peer);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user