mirror of
https://github.com/espressif/esp-nimble.git
synced 2026-11-01 01:56:10 +00:00
apps/bttester: Assign address field in sync established event
Peer address field in sync established event wast not set.
This commit is contained in:
committed by
Szymon Janc
parent
abf1d5dd1d
commit
fcc541c421
@@ -1202,11 +1202,18 @@ bond_lost(uint16_t conn_handle)
|
||||
static void
|
||||
sync_established(struct ble_gap_event *event)
|
||||
{
|
||||
int rc;
|
||||
struct ble_gap_conn_desc desc;
|
||||
struct gap_periodic_sync_est_ev ev;
|
||||
|
||||
ev.status = event->periodic_sync.status;
|
||||
ev.sync_handle = event->periodic_sync.sync_handle;
|
||||
|
||||
rc = ble_gap_conn_find(ev.sync_handle, &desc);
|
||||
assert(rc == 0);
|
||||
|
||||
ev.peer_addr = desc.peer_id_addr;
|
||||
|
||||
tester_event(BTP_SERVICE_ID_GAP, GAP_EV_PERIODIC_SYNC_ESTABLISHED,
|
||||
(uint8_t *) &ev, sizeof(ev));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user