mirror of
https://github.com/espressif/esp-nimble.git
synced 2026-09-17 22:49:55 +00:00
nimble/apps: Use the correct connection handle in BLE_GAP_EVENT_CONN_UPDATE event
This commit is contained in:
committed by
Andrzej Kaczmarek
parent
6e84712247
commit
6ecc870576
@@ -207,7 +207,7 @@ bleprph_gap_event(struct ble_gap_event *event, void *arg)
|
||||
/* The central has updated the connection parameters. */
|
||||
MODLOG_DFLT(INFO, "connection updated; status=%d ",
|
||||
event->conn_update.status);
|
||||
rc = ble_gap_conn_find(event->connect.conn_handle, &desc);
|
||||
rc = ble_gap_conn_find(event->conn_update.conn_handle, &desc);
|
||||
assert(rc == 0);
|
||||
bleprph_print_conn_desc(&desc);
|
||||
MODLOG_DFLT(INFO, "\n");
|
||||
|
||||
Reference in New Issue
Block a user